preg_replace('/(?<!\\).{1}/', 'x', $term);
01.10.03 at 18:27 CPT John W. Holmes wrote:
$term = preg_replace('/[^\\]./','x',$term);
they don't work (thanks anyway)
it's pretty simple: i need a regex that matches any character in a string except "\*" (* stands for any char that follows the "\").
example: "this is \ba test" should match: this a is test
isn't there a way to do this?
best wishes, jns
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php