note 89943 added to function.preg-match

From: Date: Mon, 30 Mar 2009 10:10:14 +0000
Subject: note 89943 added to function.preg-match
Groups: php.notes 
Request: Send a blank email to php-notes+get-152600@lists.php.net to get a copy of this message
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 ---- Server IP: 59.162.86.33 Probable Submitter: 202.88.255.198 ---- Manual Page -- http://www.php.net/manual/en/function.preg-match.php Edit -- https://master.php.net/note/edit/89943 Del: integrated -- https://master.php.net/note/delete/89943/integrated Del: useless -- https://master.php.net/note/delete/89943/useless Del: bad code -- https://master.php.net/note/delete/89943/bad+code Del: spam -- https://master.php.net/note/delete/89943/spam Del: non-english -- https://master.php.net/note/delete/89943/non-english Del: in docs -- https://master.php.net/note/delete/89943/in+docs Del: other reasons-- https://master.php.net/note/delete/89943 Reject -- https://master.php.net/note/reject/89943 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#152600) next »