Re: preg_match problem
| From: | Arpad Ray | Date: | Sat, 20 Jan 2007 18:57:02 +0000 |
| Subject: | Re: preg_match problem | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-247458@lists.php.net to get a copy of this message | ||
Martin Alterisio wrote:
Double slash to prevent PHP interpreting the slashes. Also using single quotes would be a good idea: if (preg_match('/[\\w\\x2F]{6,}/',$a))Just switching to single quotes would do the trick - you don't need to escape anything but single quotes, and backslashes if they are the last character. Arpad