I'm trying to run a regular expression on some href tags using javascript.
Unfortunatly reverse possitive lookup doesn't work in javascript :-(
I want to prefix all the relative tags with their full path.
I am using this regex-replace patern ([hs]r[ce]f?)[\s]?=[\s\"\']?(?!http|\/)(.*?)[\s\"\']
<Sorry, as I'm unable to post my HTML sample test code here because it has URL's I've had to provide this
LINK to my regex & sample code>
The regex matches the coloured sections shown on lines 1-4 href's, but also 6 & 7.
I do not wish to select any of line 6 & 7.
Any help would be most appreciated as this is starting to drive me up the wall.