title: Regex matching a set of characters except when one of them is last in python
body: <p>I am trying to extract site names from articles but sometimes the domain names that are at the end of a sentence have an undesired dot character such as in "You can find more information at www.website.gov.us. Last year we had..."</p>
  
  <p>I want to get the domain name and avoid including the last dot character. My current regex in python is:</p>
  
  <pre><code>Regex = r'[www.\w\.]+'
  </code></pre>