note 59708 deleted from reference.pcre.pattern.syntax by colder
| From: | colder@php.net | Date: | Mon, 18 Jun 2007 18:04:44 +0000 |
| Subject: | note 59708 deleted from reference.pcre.pattern.syntax by colder | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-127565@lists.php.net to get a copy of this message | ||
Note Submitter: michael(at)webstaa(dot)com
----
If you want to match any character other than reverse solidus (backslash), e.g.: to replace double
single quotes in a string but not if they are preceeded by a backslash, try:
<?php
preg_replace ( "/[^\\x5c]''/", "null", $sql );
?>