in reply to Re: Can this be a 1 line or simpler regex?
in thread Can this be a 1 line or simpler regex?
Beautiful. Though, without knowing exactly why, that layout bugs me. I'd rather do
Shrug. :)s{([\t\n\r\f])}{ local $_= $1; tr[\t\n\r\f][tnrf]; "\\$_" }eg;
Makeshifts last the longest.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re^2: Can this be a 1 line or simpler regex?
by BrowserUk (Patriarch) on Apr 06, 2003 at 04:13 UTC | |
Re: Re^2: Can this be a 1 line or simpler regex?
by diotalevi (Canon) on Apr 06, 2003 at 02:40 UTC | |
by Aristotle (Chancellor) on Apr 06, 2003 at 11:49 UTC | |
by diotalevi (Canon) on Apr 06, 2003 at 17:43 UTC |
In Section
Seekers of Perl Wisdom