Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

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

by agoth (Chaplain)
on Aug 25, 2000 at 15:17 UTC ( #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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (3)
As of 2017-02-25 00:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?






    Results (364 votes). Check out past polls.