replace('~(src=|href=)("|\')(?!href://)(.*?)(\2)~','\1\2'.$ABSOLUTE_HREF.'\3\4',$the_html);
echo htmlspecialchars($the_html);
?>
- Original Message -
From: "Brian V Bonini" <[EMAIL PROTECTED]>
To: "PHP Lists" <[EMAIL PROTE
Hey thanks! That was a good starting point...
-Brian
> -Original Message-
> From: Andrey Hristov [mailto:[EMAIL PROTECTED]]
> Sent: Monday, December 10, 2001 9:35 AM
> To: [EMAIL PROTECTED]
> Cc: [EMAIL PROTECTED]
> Subject: Re: [PHP] RegEx gurus help...
>
>
>
t'll be much quicker than
trying to write a regex for all of that
-Original Message-
From: Brian V Bonini [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 10, 2001 9:22 AM
To: PHP Lists
Subject: [PHP] RegEx gurus help...
I need to replace all relative links in an html
doc
I need to replace all relative links in an html
doc with absolute links on the fly weather it
be an image link,
a URL,
a link to an external JS file
or external css file.
Anyone done this before and have a prefab regex laying
around they want to share?
-Brian
--
PHP General Mailing Li
I need to replace all relative links in an html
doc with absolute links on the fly weather it
be an image link,
a URL,
a link to an external JS file
or external css file.
Anyone done this before and have a prefab regex laying
around they want to share?
-Brian
--
PHP General Mailing Li
5 matches
Mail list logo