fearless_fool has asked for the wisdom of the Perl Monks concerning the following question:
yo, what's a "henway"?would result in
yo\, what\'s a \"henway\"\?and similarly, de-escaping the second string would result in the first.
Given perl's rich set of regex functions, I know this is simple to write, but I've also learned that nearly everything worth writing has been already written. Has it?
- ff
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: string escaping / de-escaping functions
by mr_mischief (Monsignor) on Oct 25, 2008 at 00:12 UTC | |
|
Re: string escaping / de-escaping functions
by GrandFather (Saint) on Oct 25, 2008 at 00:02 UTC | |
|
Re: string escaping / de-escaping functions
by ikegami (Patriarch) on Oct 25, 2008 at 00:16 UTC | |
|
Re: string escaping / de-escaping functions
by juster (Friar) on Oct 25, 2008 at 06:20 UTC | |
by Anonymous Monk on Oct 25, 2008 at 06:35 UTC | |
by juster (Friar) on Oct 25, 2008 at 07:13 UTC | |
|
Re: string escaping / de-escaping functions
by repellent (Priest) on Oct 25, 2008 at 04:44 UTC | |
|
Re: string escaping / de-escaping functions
by ww (Archbishop) on Oct 25, 2008 at 01:19 UTC |