title: Python - Replace entries in list with a common pattern
body: <p>I have a python list of different URLs. I am trying to extract the domain names out of that.</p>
  
  <pre><code>list1 = ['wwww.google.com.my','www.yahoo.co.jp','www.facebook.com']
  </code></pre>
  
  <p>I am trying to convert the above such that the final output is as below:</p>
  
  <pre><code>list1 = ['www.google.com','www.yahoo.com','www.facebook.com']
  </code></pre>