|
Posted by Alvaro G. Vicario on 07/26/06 18:43
*** Chris Thompson escribió/wrote (Wed, 26 Jul 2006 11:28:38 +0100):
> Trying to split a string where there are occurances of a space, a comma, a
> newline (char 10), or a return (char 13) using the preg_split function, but
> not sure how to write the regular expression for this...
Not tested:
'/[\s,]+/'
--
-+ http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
++ Mi sitio sobre programación web: http://bits.demogracia.com
+- Mi web de humor con rayos UVA: http://www.demogracia.com
--
Navigation:
[Reply to this message]
|