Re: Space in regex

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 21-Nov-2006, at 04:25, Ford, Mike wrote:
So the syntactically-correct simple version of this is '/[A_Z0-9 \'.&_-]/i'.

Seems to ME that '/[:alnum:\'.&_-]/i' is more readable, and '/[\w \'.&-]/i' is just all around better

And there's an error in what you posted anyway, A-Z, not A_Z

However, I think Paul's post does exactly what the OP wanted:

On 16-Nov-2006, at 15:26, Paul Novitski wrote:
 /\[([^\]|]+)\|([^\]]+)\]/


--
Do you believe that there's someone up above, and does he have a timetable directing acts of love?

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux