Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
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 the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (6)
As of 2016-10-01 19:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?






    Results (6 votes). Check out past polls.