How to change absolute url within a paragraph:
<p>http://www.google.com</p>
into html link into paragraph:
<p><a href=\"http://www.google.com\">http://www.google.com</a></p>
Thare can be a lot of paragraphs. I want the regex to cut out the generic url
value from this: <p>url<p>
, and put it into template like this: <p><a href=\"url\">url</a></p>
How to do it in the short way ? Can it be done using regex.Replace() method ?
BTW: Regular expression used for absolute urls matching can be like this: ^(ht|f)tp(s?)\:\/\/[0-9a-zA-Z]([-.\w]*[0-9a-zA-Z])*(:(0-9)*)*(\/?)([a-zA-Z0-9\-\.\?\,\'\/\\\+&%\$#_]*)?$
(taken from msdn)