Number 1 fails for me but number 2 works perfectly. I'm using this string of text:
ONT |Status |% Complete ----|--------------------|---------- 1.1 |activate complete |100 1.2 |activate complete |100 1.3 |activate complete |100 1.4 |activate complete |100 1.5 |activate complete |100 1.6 |activate complete |100 1.7 |activate complete |100 1.8 |activate complete |100 1.9 |activate complete |100 1.10|activate complete |100 1.11|activate complete |100 1.12|activate complete |100 1.13|activate complete |100 1.14|activate complete |100 1.15|activate complete |100 1.16|activate complete |100 1.17|activate complete |100 1.18|activate complete |100 1.19|activate complete |100 1.20|activate complete |100 1.21|activate complete |100 1.22|activate complete |100 1.23|activate complete |100 1.24|activate complete |100 1.25|activate complete |100 1.26|activate complete |100 1.27|activate complete |100 1.28|activate complete |100 1.29|activate complete |100 1.30|activate complete |100 1.31|activate complete |100 1.32|activate complete |100 2.1 |activate complete |100 2.2 |activate complete |100 2.3 |activate complete |100 2.4 |activate complete |100 2.5 |activate complete |100 2.6 |activate complete |100 2.7 |activate complete |100 2.8 |activate complete |100

In reply to Re^2: Multi-line string regex and negative inline match by josh803316
in thread Multi-line string regex and negative inline match by josh803316

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.