RE: [PHP] Regular Expression

From: Date: Tue, 18 May 2004 17:07:16 +0000
Subject: RE: [PHP] Regular Expression
Groups: php.general 
Request: Send a blank email to php-general+get-186493@lists.php.net to get a copy of this message
Chris Boget <mailto:chris@wild.net> 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/

« previous php.general (#186493) next »