Whoops! Kind of a typo, I was trying something different and forgot about that. I just went and changed it but I am still having the problem.

Here are two example lines I am examining:

F111406585_D072203_B085_E087_T047-P085_FCC_07222003_539.cdr USL_111406585_P085_A87_030723
The first line, the date is 07222003, but it reports the 1114 that is found just after the 'F' in the beginning of the line. If in my code I take out the last $MMDD I then get '1406' returned for both lines. If I now take out $DDMM as well I then get 072203 for line 1 and a statement that there is no match for line 2. Now I take out $MMDDYY and I finally get 07222003 for line one and a statemant that line 2 does not match.

It appears as if the match is happening from right to left, but that just didn't make sense to me.


In reply to Re: Re: qr() match order with multiple patterns by gnu@perl
in thread qr() match order with multiple patterns by gnu@perl

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.