I need to replace all relative links in an html
doc with absolute links on the fly weather it
be an image link,
<img src='/_imgs/imgs_nav/transPix.gif' width='10' height='13'>
<img src='../_imgs/imgs_nav/transPix.gif' width='10' height='13'>

a URL,
<a href="/dealers/index.asp">

a link to an external JS file
<script language='JavaScript' src='/_js/scripts.js'
type='text/javascript'></script>

or external css file.
<link rel="stylesheet" href="../_css/style.css" type="text/css">

Anyone done this before and have a prefab regex laying
around they want to share?

-Brian


-- 
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]

Reply via email to