in reply to Re: help in understanding odd regex match
in thread help in understanding odd regex match

Thank you,

I see the mistake i'm making now in the second s///. all better.

Also i was unaware that using $& was any worse the $1,$2.
Thanks for pointing that out as well.

I do appreciate the help.
  • Comment on Re: Re: help in understanding odd regex match

Replies are listed 'Best First'.
Re: Re: Re: help in understanding odd regex match
by duff (Parson) on Feb 20, 2004 at 21:39 UTC

    $& slows down every regular expression in your program where $1 and friends just slow down those regular expressions that use them. Same goes for $` and $'. This is documented (albeit sparsely) in perlvar