in reply to Regexes and backslashes
my $text = 'Goodbye\; Good luck\, and thanks for all the fish!\\n\\n'; $text =~ s{ \\ ([^n]) } {$1}xmsg; print "-->$text<--"; --output:-- -->Goodbye; Good luck, and thanks for all the fish!\n\n<--
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Regexes and backslashes
by oko1 (Deacon) on Feb 16, 2011 at 05:01 UTC | |
by AnomalousMonk (Archbishop) on Feb 16, 2011 at 06:14 UTC | |
by oko1 (Deacon) on Feb 16, 2011 at 08:24 UTC | |
by wind (Priest) on Feb 16, 2011 at 08:44 UTC | |
by wind (Priest) on Feb 16, 2011 at 08:34 UTC |