I am not a very experienced programmer, but I think that "str_replace"
can be used in this case:
$new_string=str_replace('|', '_', $old_string)then use the same function to replace spaces. Ed Friday, February 2, 2007, 9:30:37 PM, you wrote: > Hi all, > I want replace the "|" (pipe) and the " " (space) chars where are > between " (double-quotes) by an underscore "_" with the > preg_replace(); funtction. > Can someone help me to find the correct regex. > Thanks in advance > Seb -- Best regards, wwww mailto:[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

