Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
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

Replies are listed 'Best First'.
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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (8)
As of 2016-12-05 08:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (75 votes). Check out past polls.