Regex Split
Posted: Wed Aug 04, 2004 12:13 pm
I'm hoping this is easy to achieve, but I'm a bit lost as to how without using a whole bunch of strpos and substr functions. I've seen regex in php, but they only seem to split/match based on one pattern.
Some text ...
"<start>blah blah<end><start>more blah<end>"
I'd like to split the text starting with <start>, ending with <end>, returning an array containing
"blah blah"
"more blah"
Thanks.
Some text ...
"<start>blah blah<end><start>more blah<end>"
I'd like to split the text starting with <start>, ending with <end>, returning an array containing
"blah blah"
"more blah"
Thanks.