Your skill will accomplish
what the force of many cannot
regex escaping forward slash in regexby gilemon (Initiate)
|on Dec 09, 2009 at 16:22 UTC||Need Help??|
gilemon has asked for the
wisdom of the Perl Monks concerning the following question:
I'm doing a Perl script to replace 5.2 deprecated PHP functions like split.
I'm hitting a problem when it comes to replace something like
so far I came with this regex:
but this obviously doesn't work if the regex contains the forward slash character.
I also tried this:
which escapes too many things as it escapes every meta characters.
Any secret escape sequence code that only escape forward slashes?