Re: regular expressions

From: Date: Sun, 06 Jan 2002 04:26:39 +0000
Subject: Re: regular expressions
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-79595@lists.php.net to get a copy of this message
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...

« previous php.general (#79595) next »