|
[x]
Posted via EE Mobile
|
|
| Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again. |
|
|
|
|
Asked by x2cmsac in Regular Expressions
I would like a function / regular expressions that will take a HTML page and fix all the HTML paths so they are root relative.
e.g.
<a href="index.html">Home</a>
would become
<a href="/index.html">Home</a
>
I need this to work for links, image src and FLASH object/embed src and background images url's set in the style.
Any links or src which have
http:// or
https:// in or are internal page link anchors should be ignore.
Thanks.
20091111-EE-VQP-92 / EE_QW_2_20070628