Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Answer: How can a regex match every occurence of a string?

( #29603=categorized answer: print w/ replies, xml ) Need Help??

Q&A > regular expressions > How can a regex match every occurence of a string? contributed by agoth

use /g; as your modifier.

Comment on Answer: How can a regex match every occurence of a string?
Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (5)
As of 2014-07-10 05:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (199 votes), past polls