use warnings; use strict; my $text = "to { (This Word) }"; my $remove = quotemeta "{ (This Word) }"; $text =~ s/\R//g; $text =~ s/$remove//; print $remove, $/, $/; print $text; print "\n"; __END__ \{\ \(This\ Word\)\ \} to
In reply to Re: Question about parentheses in regex
by toolic
in thread Question about parentheses in regex
by Von_Halen
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |