Re: need to change $ char in string

From: Date: Sat, 29 Jun 2002 16:04:31 +0000
Subject: Re: need to change $ char in string
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-104498@lists.php.net to get a copy of this message
On Saturday 29 June 2002 22:58, Beverly Steiner wrote: > I've tried everything I can think of to change a dallar sign in a string to > something else or to split the string on the $ but I can't the the > information that comes after the $. > > Typical string contains: 1.2$General/ms1.zip > > when I try: > $new_string = preg_replace("/\$/", "%", $test_string); Try: $new_string = preg_replace("/\\$/", "%", $test_string); -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* Pity the meek, for they shall inherit the earth. -- Don Marquis */

« previous php.general (#104498) next »