title: C# regex pattern to extract urls from given string - not full html urls but bare links as well
body: <p>I need a regex which will do the following</p>
  
  <pre><code>Extract all strings which starts with http://
  Extract all strings which starts with www.
  </code></pre>
  
  <p>So i need to extract these 2.</p>
  
  <p>For example there is this given string text below</p>
  
  <pre><code>house home go www.monstermmorpg.com nice hospital http://www.monstermmorpg.com this is incorrect url http://www.monstermmorpg.commerged continue
  </code></pre>
  
  <p>So from the given above string i will get</p>
  
  <pre><code>    www.monstermmorpg.com
  http://www.monstermmorpg.com
  http://www.monstermmorpg.commerged
  </code></pre>
  
  <p>Looking for regex or another way. Thank you.</p>
  
  <p>C# 4.0</p>