Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: qr() match order with multiple patterns

by RollyGuy (Chaplain)
on Jul 23, 2003 at 13:39 UTC ( #277144=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://277144]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (2)
As of 2022-08-15 04:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?