in reply to Re: Regexes and backslashes
in thread Regexes and backslashes
Oh, dear. I guess I'm extra awful at explaining what I mean tonight. Pity; I suppose the only thing left is to shoot myself and get it over with. :)
Your example does indeed result in the above output - but that's not what I'm looking for. I would like for the escaped semicolons to be converted to non-escaped semicolons; for escaped commas to be converted to non-escaped commas; and for escaped newlines to be converted to actual newlines. Metacharacters, not literal '\n's. Ones that actually result in newlines being produced on the screen when a line is printed - i.e.,
| Line 1: | Goodbye; Good luck, and thanks for all the fish! |
| Line 2: |
and NOT
| Line 1: | Goodbye; Good luck, and thanks for all the fish!\n\n |
(I'm not trying to come across as being snarky; I'm just trying to make *sure* that I'm getting across what I mean, since I've obviously failed to do so before now.)
-- Education is not the filling of a pail, but the lighting of a fire. -- W. B. Yeats
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Regexes and backslashes
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 | |
|
Re^3: Regexes and backslashes
by wind (Priest) on Feb 16, 2011 at 08:34 UTC |