Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
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?
[Discipulus]: thanks choroba i'll update my answer
[Lady_Aleena]: Hello Discipulus, Corion, choroba, and marioroy...
[Corion]: Hi Lady_Aleena!
[Lady_Aleena]: marioroy, are you also writing a Meditation for this?
choroba o/
Discipulus adds tozzetti alle mandorle to the platter on the sideboard.
Lady_Aleena was checking #cbstream and saw the big announcement.
[marioroy]: Tie::IxHash can be shared. Also similar modules. I cannot wait to post a solution sharing Tie::File and iterating among workers.
[marioroy]: Lady_Aleena Yes, will post something with all the new features. Parallel with few lines of code.
[marioroy]: Yes, will do for PM. I love PM.

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (10)
As of 2017-05-26 08:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?