XP is just a number | |
PerlMonks |
Re: qr() match order with multiple patternsby RollyGuy (Chaplain) |
on Jul 23, 2003 at 13:39 UTC ( [id://277144]=note: print w/replies, xml ) | Need Help?? |
When you actually use your regex $Date, you specify a g modifier thereby searching the string globally. This type of search will result in the last match being returned not the first. Therefore, if you have two dates in the same line that match, you will only see the second one.
Enjoy.
In Section
Seekers of Perl Wisdom
|
|