Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
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? - Answer 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 browsing the Monastery: (3)
As of 2016-07-28 09:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What is your favorite alternate name for a (specific) keyboard key?


















    Results (253 votes). Check out past polls.