note 56842 deleted from function.preg-match by jome

From: Date: Fri, 30 Sep 2005 19:05:04 +0000
Subject: note 56842 deleted from function.preg-match by jome
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-96083@lists.php.net to get a copy of this message
Note Submitter: kamprettos at yahoo dot com Teguh Iskanto ---- to paul at sysnyx dot com, I'm trying to quote your comments here : "Another example listed on here had the syntax /[^a-z0-9] - which allowed users to use "^username" " your remarks was totally *wrong* and a bit absurd, since in regex if one wants to include the character "^" the regex syntax that he/she should be using is /[\\^a-z0-9]/i and not /[^a-z0-9]/i The /[^a-z0-9]/i means : get any character that's not in "a-z" or "0-9" regardless of the small/capital letters. For those who are unsure about the regex syntax, following are some of the list from google : http://www.google.com.sg/search?q=regex+syntax

« previous php.notes (#96083) next »