Re: [PHP] regexp problem

2003-07-11 Thread Burhan Khalid
On Thursday, July 10, 2003, 9:25:31 PM, Taylor wrote: TY First, TY I need the code to replace the link in a string, like TY BASE HREF=www.google.com with BASE HREF=mystring TY ereg_replace('BASE HREF=\'(.*)'\', 'BASE HREF=\$my_string\', TY $old); TY That was the closest i got, but (.*) makes

[PHP] regexp problem

2003-07-10 Thread Taylor York
First, I need the code to replace the link in a string, like BASE HREF=www.google.com with BASE HREF=mystring ereg_replace('BASE HREF=\'(.*)'\', 'BASE HREF=\$my_string\', $old); That was the closest i got, but (.*) makes it take the first BASE HREF, and the last , which sucks. Can anyone help?