Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Re: Regex bug or head made of solid bone?

by alien_life_form (Pilgrim)
on Jun 06, 2002 at 17:06 UTC ( [id://172283]=note: print w/replies, xml ) Need Help??


in reply to Re: Regex bug or head made of solid bone?
in thread Regex bug or head made of solid bone?

Greetings,

interesting...
I wonder whether this is by design or by accident?

Looking back at my original example, another thing is appears to be non-obvious. The (backslashed) portion that reads:

\\\\\+\\\- # matches literal \+\- in a variable
had originally been written as:
\\\+\\\- # matches literal \+\- in a literal regex
why do I need an additional '\' before a quoted + and only within a variable is beyond me.... Same reason?
Cheers,
alf
You can't have everything: where would you put it?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://172283]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (7)
As of 2024-04-24 10:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found