> 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/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php