Eben
07-02-2010, 11:29 AM
Hi,
i'm trying to replace href in a tags using preg_replace,
i only got this with preg_match.
preg_match_all("/<\s*a\s+[^>]*href\s*=\s*[\"']?([^\"' >]+)[\"' >]/i", $content, $match);
i don't familiar with regex, can anyone help me here?
i'm trying to replace href in a tags using preg_replace,
i only got this with preg_match.
preg_match_all("/<\s*a\s+[^>]*href\s*=\s*[\"']?([^\"' >]+)[\"' >]/i", $content, $match);
i don't familiar with regex, can anyone help me here?