in reply to qr() match order with multiple patterns

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.
  • Comment on Re: qr() match order with multiple patterns

Replies are listed 'Best First'.
Re: Re: qr() match order with multiple patterns
by gnu@perl (Pilgrim) on Jul 23, 2003 at 13:55 UTC