My html code has many anchors and links such as :
<script src="/Common/Scripts/jquery-1.4.4.min.js" type="text/javascript"></script>
<link href="/Common/Css/UserAdmin.css" rel="stylesheet" type="text/css" />
<a href="/test.php">test</a></li>
I want to change them into:
<script src="http://www.mydomain.com/Common/Scripts/jquery-1.4.4.min.js" type="text/javascript"></script>
<link href="http://www.mydomain.com/Common/Css/UserAdmin.css" rel="stylesheet" type="text/css" />
<a href="http://www.mydomain.com/test.php">test</a></li>
ie. add a http://www.mydomain.com
before every src and href value, how to achieve this using regex expression. PS: I use PHP language.