good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re^2: efficient char escape sequence substitutionby nobull (Friar) |
on May 28, 2005 at 07:51 UTC ( [id://461302]=note: print w/replies, xml ) | Need Help?? |
That doesn't handle wide-character escapes.
In comp.lang.perl.misc I recently offered this solution.
Note that's not 100% infalible but AFAIK it's not a security problem and copes with all reasonable strings. It does have the interesting side effect of stripping \$ \" and \@ - but those have no buisness being in most of the sort of strings you'll encounter.
In Section
Seekers of Perl Wisdom
|
|