Chris Boget <mailto:[EMAIL PROTECTED]>
    on Tuesday, May 18, 2004 9:55 AM said:

> Why isn't my regex working?  From everything that I've
> read, it should be...

> $string = "[joebob]";
> 
> if( preg_match( '/\[(\s+)\]/i', $string, $aMatches )) {

"\s Matches any whitespace character; this is equivalent to the class [
\t\n\r\f\v]." [1]


hth,
chris.

[1] http://www.amk.ca/python/howto/regex/

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

Reply via email to