On Tuesday 13 February 2001 04:59, Scott Mebberson wrote:
> I think that maybe preg_match() or preg_match_all() is the answer but I
> have know idea on how to make the regular expression I am using perl
> comptaible.
>
> Here it is:
> $txt = ereg_replace("src=\"([^>]+)\.(gif|jpg)\"",
> "src=\"http://www.ezigraphics.com/images/about_0001." . //2. "\"",
> $txt);
$txt = preg_replace ('/src="([^>]+)\.(gif|jpg)"/',
'src="http://www.ezigraphics.com/images/about_0001.\\2"',
$txt);
Wasn't too hard, was it? :-)
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
"World domination. Fast." (Linus Torvalds about Linux)
--
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]