Re: str_replace or regex

From: Date: Thu, 18 Mar 2004 18:45:48 +0000
Subject: Re: str_replace or regex
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-180880@lists.php.net to get a copy of this message
eregi_replace('(\$\$)([a-z].+)', '\1z', '$$a'); Maybe i'm wrong, please crosscheck. Regards, Firman ----- Original Message ----- From: "Adam Williams" <awilliam@mdah.state.ms.us> To: <php-general@lists.php.net> Sent: Friday, March 19, 2004 1:06 AM Subject: [PHP] str_replace or regex > Hi, I was wondering if I can get some help with either a str_replace or a > regex. I have some data and it always begins with $$ but it can end with > any letter of the alphabet. so sometimes its $$a and sometimes its $$b > and sometimes $$c all the way to $$z. $$a all the way to $$z needs to > be changed to a / So is there a way to do this? I was thinking of a > str_replace but since the letter always changes I'm not so sure. Any help? > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >

« previous php.general (#180880) next »