Re: [PHP] Re: Put text matching regex into array?

2002-12-18 Thread Wico de Leeuw
At 13:39 18-12-02 +, achillex wrote: [EMAIL PROTECTED] (Leif K-Brooks) wrote in news:3DFE7849.5050102 @buyer-brokerage.com: > Is there a way to put each part of a string matching a regex into an > array? Example: > $string = "-_-_--- --_-_-- random text here-_"; > $array = regextoarray($

[PHP] Re: Put text matching regex into array?

2002-12-18 Thread achillex
[EMAIL PROTECTED] (Leif K-Brooks) wrote in news:3DFE7849.5050102 @buyer-brokerage.com: > Is there a way to put each part of a string matching a regex into an > array? Example: > $string = "-_-_--- --_-_-- random text here-_"; > $array = regextoarray($string,"[-_]{1,}"); > //Produces array of