in reply to Re^3: Regexes and backslashes
in thread Regexes and backslashes
Heh. Yeah, we could even in-line it:
s|\\([,;n])|${{',',',',';',';',n=>"\n"}}{$1}|g;
Nicely confusing. :)
I guess there really is no way to make this work with a simple char class replacement, though. Oh well.
-- Education is not the filling of a pail, but the lighting of a fire. -- W. B. Yeats
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Regexes and backslashes
by wind (Priest) on Feb 16, 2011 at 08:44 UTC |