in reply to Question about parentheses in regex
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Question about parentheses in regex
by Von_Halen (Novice) on May 27, 2015 at 19:17 UTC | |
by choroba (Cardinal) on May 27, 2015 at 19:23 UTC | |
by ww (Archbishop) on May 27, 2015 at 19:41 UTC | |
by Anonymous Monk on May 28, 2015 at 02:54 UTC |