RE: [PHP] need to change $ char in string
| From: | Beverly Steiner | Date: | Sat, 29 Jun 2002 17:24:56 +0000 |
| Subject: | RE: [PHP] need to change $ char in string | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-104504@lists.php.net to get a copy of this message | ||
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:php-general@gremlins.com.hk]
Sent: Saturday, June 29, 2002 12:05 PM
To: php-general@lists.php.net
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