Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: multiple matches with regexp

by Aristotle (Chancellor)
on Oct 10, 2003 at 17:42 UTC ( [id://298340]=note: print w/replies, xml ) Need Help??


in reply to multiple matches with regexp

This only matches twice because each match continues were the previous left off. The first match consumes two a's, so you can only match once more.

Many solutions are possible, but without a better idea of your requirements, most of the propositions won't fit. Do you intend to match fixed strings or are you planning to use true patterns? What does your data look like? What kinds of overlap between matches are possible? There is no universally applicable answer to your problem.

Makeshifts last the longest.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (4)
As of 2024-04-25 17:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found