the example below should turn any character exept "\*" (*= any char) into an "x":
$term = preg_replace('/[^(\\\)+(.){1}]/', 'x', $term);
but i guess because of the [brackets] the "." (period) is treated as character "." instead as metacharacter (that matches any char).
anyone knows how to work around this?
thanks for your effort best wishes, jns
ps: thanks for your help, holmes and kilimajer!
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php