note 89364 added to function.preg-replace

From: Date: Wed, 04 Mar 2009 19:00:11 +0000
Subject: note 89364 added to function.preg-replace
Groups: php.notes 
Request: Send a blank email to php-notes+get-151477@lists.php.net to get a copy of this message
Because i search a lot 4 this: The following should be escaped if you are trying to match that character \ ^ . $ | ( ) [ ] * + ? { } , Special Character Definitions \ Quote the next metacharacter ^ Match the beginning of the line . Match any character (except newline) $ Match the end of the line (or before newline at the end) | Alternation () Grouping [] Character class * Match 0 or more times + Match 1 or more times ? Match 1 or 0 times {n} Match exactly n times {n,} Match at least n times {n,m} Match at least n but not more than m times More Special Character Stuff \t tab (HT, TAB) \n newline (LF, NL) \r return (CR) \f form feed (FF) \a alarm (bell) (BEL) \e escape (think troff) (ESC) \033 octal char (think of a PDP-11) \x1B hex char \c[ control char \l lowercase next char (think vi) \u uppercase next char (think vi) \L lowercase till \E (think vi) \U uppercase till \E (think vi) \E end case modification (think vi) \Q quote (disable) pattern metacharacters till \E Even More Special Characters \w Match a "word" character (alphanumeric plus "_") \W Match a non-word character \s Match a whitespace character \S Match a non-whitespace character \d Match a digit character \D Match a non-digit character \b Match a word boundary \B Match a non-(word boundary) \A Match only at beginning of string \Z Match only at end of string, or before newline at the end \z Match only at end of string \G Match only where previous m//g left off (works only with /g) ---- Server IP: 194.8.30.16 Probable Submitter: 77.54.130.196 ---- Manual Page -- http://www.php.net/manual/en/function.preg-replace.php Edit -- https://master.php.net/note/edit/89364 Del: integrated -- https://master.php.net/note/delete/89364/integrated Del: useless -- https://master.php.net/note/delete/89364/useless Del: bad code -- https://master.php.net/note/delete/89364/bad+code Del: spam -- https://master.php.net/note/delete/89364/spam Del: non-english -- https://master.php.net/note/delete/89364/non-english Del: in docs -- https://master.php.net/note/delete/89364/in+docs Del: other reasons-- https://master.php.net/note/delete/89364 Reject -- https://master.php.net/note/reject/89364 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#151477) next »