in reply to Re: nested reg ex over multiple lines
in thread nested reg ex over multiple lines

Are you aware of the runtime drawbacks that $& (and his brethren $' and $`) impose?
  • Comment on Re^2: nested reg ex over multiple lines

Replies are listed 'Best First'.
Re^3: nested reg ex over multiple lines
by tphyahoo (Vicar) on Jun 20, 2005 at 14:10 UTC
    Yeah, but to be honest, I had kind of forgotten about them when I posted the above. I was just all into the inch along with negative lookahead thing.

    Basically, the $& construct is slow, and might not be supported into the future. (Right?) What's the "right" way to do this again?

    UPDATE: Changed above code to use $1 instead.

      ...
      while ($content =~m/(CALCON((?!CALCON).)*)/smg){ my $entire_match = $1;
      ...


      holli, /regexed monk/