Re: preg_replace();

From: Date: Fri, 02 Feb 2007 19:38:13 +0000
Subject: Re: preg_replace();
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-248204@lists.php.net to get a copy of this message
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:wwww@freenet.am

« previous php.general (#248204) next »