title: How can I get the offset where a Python regular expression search found a match?
body: <p>I'm trying to get the offset of the match found using re.search().</p>
  
  <p><a href="http://docs.python.org/dev/howto/regex.html" rel="noreferrer">http://docs.python.org/dev/howto/regex.html</a></p>
  
  <p>This site explains how to get offsets of match components relative to the start of the match, but doesn't say how to get the offset of the match itself in the "haystack" string.</p>