Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
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 musing on the Monastery: (1)
As of 2017-03-30 05:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (353 votes). Check out past polls.