Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^2: Regular Expression match too much

by thor (Priest)
on Feb 08, 2006 at 20:35 UTC ( [id://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

Replies are listed 'Best First'.
Re^3: Regular Expression match too much
by ikegami (Patriarch) 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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://528925]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (2)
As of 2024-04-26 01:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found