sweetblood has asked for the wisdom of the Perl Monks concerning the following question:
Once quotemeta is done with this it turns it into:\somedir\anotherdir\filename.\d{3}$
What I'd like is to be able to bypass quotemeta's quoting.\\somedir\\anotherdir\\filename\.\\d\{3\}\$
I'd like the string to look like this:
I had hoped perhaps \E prior to the desired meta would do the trick but quotemeta just escaped it. I didn't really expect that to work and I suppose it shouldn't but I'd still like to do something.\\somedir\\anotherdir\\filename\.\d{3}$
Does anyone have any suggestions?
TIA
Sweetblood
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Escaping quotemeta() in regex
by Anonymous Monk on Nov 30, 2005 at 21:35 UTC | |
|
Re: Escaping quotemeta() in regex
by ikegami (Patriarch) on Nov 30, 2005 at 16:34 UTC | |
by sweetblood (Prior) on Nov 30, 2005 at 17:12 UTC | |
by ikegami (Patriarch) on Nov 30, 2005 at 18:24 UTC | |
by sweetblood (Prior) on Nov 30, 2005 at 18:28 UTC | |
by ikegami (Patriarch) on Nov 30, 2005 at 18:43 UTC | |
|
Re: Escaping quotemeta() in regex
by ikegami (Patriarch) on Nov 30, 2005 at 19:03 UTC | |
|
Re: Escaping quotemeta() in regex
by Roy Johnson (Monsignor) on Nov 30, 2005 at 16:10 UTC |