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

Reply via email to