Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Re: Grabbing file prefixes with Reg Exp

by MeowChow (Vicar)
on May 13, 2001 at 21:13 UTC ( [id://80061]=note: print w/replies, xml ) Need Help??


in reply to Re: Grabbing file prefixes with Reg Exp
in thread Grabbing file prefixes with Reg Exp

Any reason for using the \A ... \z assertions instead of the commonplace ^ ... $ metachars? I believe that's the first I've seen those two used. More generally, is there a difference, outside of multiline-matching mode?
   MeowChow                                   
               s aamecha.s a..a\u$&owag.print
  • Comment on Re: Re: Grabbing file prefixes with Reg Exp

Replies are listed 'Best First'.
Re: Re: Re: Grabbing file prefixes with Reg Exp
by MrNobo1024 (Hermit) on May 13, 2001 at 21:47 UTC
    \z only matches at the end of the string, but $ can match before a newline at the end. Unless you're using multiline mode, \A and ^ are the same.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (3)
As of 2024-04-24 02:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found