it may help if you paste me some example lines from @aonly that exhibit the lines you are after, my test group was just pulled from a simple edgar search. This page https://www.sec.gov/Archives/edgar/data/1540531/0000905718-16-001254.txt does not exhibit lines of that type

my regex will capture anything that looks like a date, it may not be involved in the fiscal year end

Edit: for instance https://www.sec.gov/Archives/edgar/data/1084869/0001437749-16-024828.txt shows a date match on the line

<P id=PARA12 style="MARGIN-BOTTOM: 0px; TEXT-ALIGN: center; MARGIN-TOP +: 0px; LINE-HEIGHT: 1.25"><FONT style="FONT-SIZE: 10pt; FONT-FAMILY: +Times New Roman, Times, serif"><B>For the quarterly period ended Dece +mber 27, 2015</B></FONT></P>

and i repeat my concern about qr/\'\n'/ should be qr/\n/. without that change the lines can be very long and my regex has no ^ for the /m to anchor on


In reply to Re^7: REGEX for date by huck
in thread REGEX for date by wrkrbeee

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.