title: Regular Expression to read between HTML works in RegEx tester but not in my code
body: <p>I'm fairly new to RegEx (and Python) in general and am trying to use it to read the temperature and description of weather via the HTML tags of a website.</p>
  
  <p>I've attempted to rework examples of what I've been shown in class and read online to do this.</p>
  
  <pre><code>url = 'https://weather.com/en-AU/weather/today/l/-27.47,153.02'
  contents = urllib.request.urlopen(url).read().decode("utf-8")
  
  start_of_div = contents.find('&lt;div class="today_nowcard-phrase"&gt;') # start of phrase line
  end_of_div = start_of_div + contents[start_of_div:].find("&lt;/div&gt;") + 6 # close of phrase line
  
  phrase_area = contents[start_of_div:end_of_div]
  print(phrase_area)
  
  phrase = phrase_area.rfind(r'&gt;(.*)&lt;') # regex tester says this works
  print(phrase)
  
  </code></pre>
  
  <p>There's then another section that gets the degrees which uses the same kind of layout. 
  It should print a phrase like 'Sunny' or 'Light Rain' or whatever else the weather is, as well as the current degrees (celsius). Instead it prints out:</p>
  
  <pre><code>&lt;div class="today_nowcard-phrase"&gt;Sunny&lt;/div&gt;
  - 1
  &lt;div class="today_nowcard-temp"&gt;&lt;span class=""&gt;21&lt;sup&gt;
  - 1
  </code></pre>
  
  <p>Instead of -1 it should be 'Sunny' and '21' (at that point of time). The RegEx works when I put it into RegEx testing sites, but not in my actual program (probably because of some obvious error I can't see). Any help would be appreciated.</p>