|
Posted by Geoff Berrow on 07/24/07 16:11
Does anyone know what regular expression I would use to split text into
an array, assuming the text can be separated by any non alphanumeric
character?
e.g
$string ="cat,dog fish, mouse -elephant/tiger";
would give
Array
(
[0] => cat
[1] => dog
[2] => fish
[3] => mouse
[4] => elephant
[5] => tiger
)
--
Geoff Berrow (put thecat out to email)
It's only Usenet, no one dies.
My opinions, not the committee's, mine.
Simple RFDs http://www.ckdog.co.uk/rfdmaker/
Navigation:
[Reply to this message]
|