title: Regular expression to find URLs within a string
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/758135/c-code-to-linkify-urls-in-a-string">C# code to linkify urls in a string</a>  </p>
  </blockquote>
  
  
  
  <p>I'm sure this is a stupid question but I can't find a decent answer anywhere. I need a good URL regular expression for C#. It needs to find all URLs in a string so that I can wrap each one in html to make it clickable.</p>
  
  <ol>
  <li><p>What is the best expression to use for this?</p></li>
  <li><p>Once I have the expression, what is the best way to replace these URLs with their properly formatted counterparts?</p></li>
  </ol>
  
  <p>Thanks in advance!</p>