in reply to
Strip brackets and contents from string
Perhaps your string contains newlines. The metacharacter '.' does not match newline. Use
s/\{[^}]*\}//gms
. (This is probably good practice even if it is not your problem.
Bill
Comment on
Re: Strip brackets and contents from string
Download
Code
In Section
Seekers of Perl Wisdom