Jason, Thanx for your suggestion but I tried it and it didn't work. I'm not sure if it matters, but this running on NT.
Bev -----Original Message----- From: Jason Wong [mailto:[EMAIL PROTECTED]] Sent: Saturday, June 29, 2002 12:05 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] need to change $ char in string 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 */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php