pepijn has asked for the wisdom of the Perl Monks concerning the following question:
I have a string "abcd bcde cdef defg" and I only need all occurences of "cde" to be returned into an array. Giving me in this case an array with 2 values being both "cde".
How can I become this by using a regex ? (I'm actually not looking for "cde" but another variable thing, but that regex is way to long for just this question).
Any help is welcome, also just a URL to a certain site etc...
Thanks in advance,
pepijn
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Matching multiple occurences in one string
by borisz (Canon) on Feb 27, 2004 at 17:16 UTC | |
by pepijn (Initiate) on Feb 29, 2004 at 12:25 UTC | |
|
Re: Matching multiple occurences in one string
by Limbic~Region (Chancellor) on Feb 27, 2004 at 17:12 UTC |