JamesNC has asked for the wisdom of the Perl Monks concerning the following question:
but, it does not work when there this 2 or more$txt = ' \*/ '; $txt =~s/\\/\\\\/g; # what I expected ' \\*/ '; print $txt;
I needed it to do this '__\\\\U//__'$txt = ' __\\U//__ '; $txt =~s/\\/\\\\/g; print $txt; #prints __\\U//__
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Escaping multiple escape chars
by ikegami (Patriarch) on Dec 09, 2005 at 20:54 UTC | |
by JamesNC (Chaplain) on Dec 10, 2005 at 00:48 UTC | |
by ikegami (Patriarch) on Dec 10, 2005 at 06:11 UTC | |
by JamesNC (Chaplain) on Dec 10, 2005 at 06:56 UTC | |
by ikegami (Patriarch) on Dec 10, 2005 at 14:22 UTC | |
| |
by ikegami (Patriarch) on Dec 10, 2005 at 06:14 UTC | |
by JamesNC (Chaplain) on Dec 09, 2005 at 21:03 UTC | |
Re: Escaping multiple escape chars
by Roy Johnson (Monsignor) on Dec 09, 2005 at 20:42 UTC | |
Re: Escaping multiple escape chars
by jdporter (Paladin) on Dec 09, 2005 at 20:23 UTC | |
by JamesNC (Chaplain) on Dec 09, 2005 at 20:37 UTC | |
Re: Escaping multiple escape chars
by l.frankline (Hermit) on Dec 10, 2005 at 04:45 UTC | |
by JamesNC (Chaplain) on Dec 10, 2005 at 07:14 UTC |