in reply to Re^3: Multi-line string regex and negative inline match
in thread Multi-line string regex and negative inline match

I would simply insert (?:[^\n]*\n){2} after the \A.

qr/(?x: \A (?:[^\n]*\n){2} (?: [^|]* \| \s* activate[ ]complete \s* \| [^\n]* \n? )* \z )/ms;

For the finicky, [^|] could be changed to [^|\n]

Replies are listed 'Best First'.
Re^5: Multi-line string regex and negative inline match
by ahmad (Hermit) on Jul 31, 2010 at 01:20 UTC

    Yes, skipping 2 lines is better I guess

    Out of curiosity, What text editor do you use?

      UltraEdit and Eclipse with Epic