I am new in Regex can you please help in writing for regex in C# to extract url from text below?
Example 1
x+=1;
top.location.href = "http://www.keenthemes.com/preview/index.php?theme=metronic";
Example 2
alert("are you sure");
top.location.href = 'http://www.keenthemes.com/preview/index.php?theme=metronic';
www.keenthemes.comfrom the above URL in C# ? or you want to get the string which starts withhttp?