hello guys
i trying tofind all relative links on page and change them to absoulote links.
example finding all href or img src links that dont start with http:// and add to them the domain
so if i have about.htm it will be http://domain.com/about.htm
i want to do it for all tags that use relative links i manage to do it for img and href but its not perfect
i used: (<\s*(a|img)\s+[^>]*(href|src)\s*=\s*[\"'])(?!http)([^\"'>]+)[\"'>]
but it show me the <a href= tag and <img src= tag and i need only the relative link
i need it for my c sharp application
if someone can help me find the solution it will be great
because i'm working of it almost a week and can find how to do it
thanks in advance