title: Regex Python Grouping
body: <p>I'm trying to produce the following "Query ID: XYZABC"</p>
  
  <p>My code is as follows from a .txt file that has one instance of the following "Query= xyxysdfl;jas"</p>
  
  <pre><code>#!/usr/bin/env python3
  
  import re
  
  for line in open("/home/example.txt"):
      query_id = re.search(r"Query=(.*$)", line)
      if query_id != None:
          print("Query ID: " + query_id.group())
  </code></pre>
  
  <p>This produces the following:</p>
  
  <p>Query ID: Query= xyslkjjdf</p>
  
  <p>How can I eliminate the "Query="? I thought I was doing that by including the (.*$)?</p>