Re: [PHP] str_replace or regex

2004-03-18 Thread Firman Wandayandi
eregi_replace('(\$\$)([a-z].+)', '\1z', '$$a'); Maybe i'm wrong, please crosscheck. Regards, Firman - Original Message - From: "Adam Williams" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, March 19, 2004 1:06 AM Su

Re: [PHP] str_replace or regex

2004-03-18 Thread John W. Holmes
From: "Adam Williams" <[EMAIL PROTECTED]> > 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 wa

Re: [PHP] str_replace or regex

2004-03-18 Thread Richard Davey
Hello Adam, Thursday, March 18, 2004, 6:06:06 PM, you wrote: AW> Hi, I was wondering if I can get some help with either a str_replace or a AW> regex. I have some data and it always begins with $$ but it can end with AW> any letter of the alphabet. so sometimes its $$a and sometimes its $$b AW>

[PHP] str_replace or regex

2004-03-18 Thread Adam Williams
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 ch