title: Which of the following regular expressions can be used to get the domain name? python
body: <p>Which of the following regular expressions can be used to get the domain name?</p>
  <p>I try the next code but it doesn't work, there is something that i'm doing wrong?</p>
  <blockquote>
  <p>In the picture the another options</p>
  </blockquote>
  <pre><code>txt = 'I refer to https://google.com and i never refer http://www.baidu.com'
  print(txt.findall(?&lt;=https:\/\/)([A-Za-z0-9.]*))
  </code></pre>
  <p><a href="https://i.stack.imgur.com/T79Vj.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/T79Vj.png" alt="enter image description here" /></a></p>