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.