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

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.

  • Comment on Re^3: nested reg ex over multiple lines

Replies are listed 'Best First'.
Re^4: nested reg ex over multiple lines
by holli (Abbot) on Jun 20, 2005 at 14:15 UTC
    ...
    while ($content =~m/(CALCON((?!CALCON).)*)/smg){ my $entire_match = $1;
    ...


    holli, /regexed monk/