note 89943 deleted from function.preg-match by thiago

From: Date: Mon, 30 Mar 2009 12:04:11 +0000
Subject: note 89943 deleted from function.preg-match by thiago
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-152607@lists.php.net to get a copy of this message
Note Submitter: larvus ---- http://phpwebscript.blogspot.com Metacharacters A metacharacter is simply an alphabetical character preceded by a backslash that acts to give the combination a special meaning. For instance, you can search for large money sums using the '\d' metacharacter: /([\d]+)000/, Here \d will search for any string of numerical character. Following is the list of metacharacters which can be used in PERL Style Regular Expressions. Character Description . a single character \s a whitespace character (space, tab, newline) \S non-whitespace character \d a digit (0-9) \D a non-digit \w a word character (a-z, A-Z, 0-9, _) \W a non-word character [aeiou] matches a single character in the given set [^aeiou] matches a single character outside the given set (foo|bar|baz) matches any of the alternatives specified

« previous php.notes (#152607) next »