Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: qr() match order with multiple patterns

by RollyGuy (Chaplain)
on Jul 23, 2003 at 13:39 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (2)
As of 2024-04-20 06:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found