Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^2: Regular Expression match too much

by thor (Priest)
on Feb 08, 2006 at 20:35 UTC ( #528925=note: print w/ replies, xml ) Need Help??


in reply to Re: Regular Expression match too much
in thread Regular Expression match too much

Just out of curiostiy, why did you use \z and with ^ instead of \A?

thor

The only easy day was yesterday


Comment on Re^2: Regular Expression match too much
Re^3: Regular Expression match too much
by ikegami (Pope) on Feb 08, 2006 at 20:41 UTC
    Little code &mdash I don't recall ever seeing any &mdash uses \A and \Z for regexps without /m. This is probably because the alternatives ^ and $ stand out more. I didn't see any reason for breaking this convention. If \a was an alias for \A, I would have used that.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (4)
As of 2014-11-29 08:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (204 votes), past polls