title: How to find urls from paragraph using Re in Python
body: <pre><code>para = &quot;A paragraph is a collection of words strung together to make a longer unit than a sentence. Several sentences often make a paragraph. There are normally three to eight sentences in a paragraph. abc.com is a vey good website. Paragraphs can start with a five-space indentation or by skipping a line and then starting over. Other site we can refer is xyz.co.in&quot;
  </code></pre>
  <p>Note, <strong>websites are started with (no space between the started letters)</strong> h t t p : / / <strong>or</strong>  w w w .</p>
  <p>I am trying to extract the  below 2 urls from the above para using regex but unable to get the result, can anyone help me out in this (I require only unique website)</p>
  <p>I am getting only one url using the below code:</p>
  <pre><code>import re
  url = re.findall(r'(http?://[^\s]+)', para)
  print(url)
  </code></pre>
  <p>What pattern should I need to pass to get both the websites?</p>