in reply to Greed is going to get you, was Re: can't get $& to remove value in a substitution
in thread can't get $& to remove value in a substitution

thanks for pointing that out...i didn't use the non-greedy qualifier because i know that i will only encounter one "textarea" in my file.
  • Comment on Re: Greed is going to get you, was Re: can't get $& to remove value in a substitution

Replies are listed 'Best First'.
Re: Re: Greed is going to get you, was Re: can't get $& to remove value in a substitution
by RMGir (Prior) on Oct 24, 2002 at 14:55 UTC
    Now you've confused me :) (Don't worry, it's easy to confuse me)

    Why use while(//g) if there's only ever going to be one match?
    --
    Mike

      erm, you're right...i meant to use non-greedy matching, oversight on my part :)
      thanks for pointing it out