|
Posted by Geoff Berrow on 07/24/07 17:12
Message-ID: <op.tvy9w7siqnv3q9@metallium> from Rik contained the
following:
>
>> 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?
>
>$array = preg_split('/\W+/',$string,-1,PREG_SPLIT_NO_EMPTY);
Thanks Rik. :-)
--
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]
|