* Thus wrote jonas_weber @ gmx. ch ([EMAIL PROTECTED]):
> regular expressions
> the example below should turn any character exept "\*" (*= any char)
> into an "x":
>
> $term = preg_replace('/[^(\\\)+(.){1}]/', 'x', $term);
preg_replace('/(?<!\\).{1}/', 'x', $term);
this is untested but using the assertion (?<!\\), meaning that the
string '\' doesn't appear before the character, should be the
direction to go.
see:
http://php.net/manual/en/pcre.pattern.syntax.php
Curt
--
"I used to think I was indecisive, but now I'm not so sure."
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php