Re: [PHP] RegEx gurus help...

2001-12-12 Thread Andrey Hristov
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

RE: [PHP] RegEx gurus help...

2001-12-10 Thread Brian V Bonini
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... > > >

RE: [PHP] RegEx gurus help...

2001-12-10 Thread Jack Dempsey
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

[PHP] RegEx gurus help...

2001-12-10 Thread Brian V Bonini
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

[PHP] RegEx gurus help...

2001-12-07 Thread Brian V Bonini
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