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?

Second,
I hate asking for help on Regexps...I would like a tutorial online that
steps me through one method of them at a time, and then lets me move
on...kindof like math. You have to know the basics befor you can get
advanced.  Any help there either?



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to