At 10:22 PM 1/5/2002 -0600, Michael Sims wrote:
>function insertpath($string) {
>
>         return preg_replace("/(<a 
> href=\")(.*\">.*<\/a>)/i","$1"._CONSTANT."$2",$string);
>
>}
>?>

Forgot to mention that the "i" at the end of the regex means to make the 
match case-insensitive...


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to