RE: [PHP] preg_match fails to fill $matches

From: Date: Wed, 05 Mar 2003 17:56:27 +0000
Subject: RE: [PHP] preg_match fails to fill $matches
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-138325@lists.php.net to get a copy of this message
> Also, try removing the 's' from outside the pattern matching in $ts. > You might get back some useful information. > > usage: pmatch [ -cfghilnv ] '/pattern/' [ file ] ... > -s : supress error messages about missing or unreadable files The 's' in preg_* means something different: "If this modifier is set, a dot metacharacter in the pattern matches all characters, including newlines. Without it, newlines are excluded. This modifier is equivalent to Perl's /s modifier. A negative class such as [^a] always matches a newline character, independent of the setting of this modifier." ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get your copy today. http://www.phparch.com/

« previous php.general (#138325) next »