title: Python re.finditer error at special characters
body: <p>I have code that loops through a list of strings, then loops through each occurrence of that string inside another string. This seems to work until it reaches a string that begins with a question mark (? I).</p>
  
  <p>This is the code.</p>
  
  <pre><code>dtID = 0
  for datum in sorted(datumList, key=operator.attrgetter('Sum'), reverse = True):
      datum.ID = dtID
      for foundDatum in re.finditer(datum.Name, text):
          datumLocList.append(DatumLoc(dtID,foundDatum.start()))
      dtID += 1
  </code></pre>
  
  <p>How can I solve this?</p>
  
  <pre><code>Traceback (most recent call last):
    File "C:\Users\trist\Documents\Python\The Compressor\The Compressor.py", line 97, in &lt;module&gt;
      compress()
    File "C:\Users\trist\Documents\Python\The Compressor\The Compressor.py", line 73, in compress
      for foundDatum in re.finditer(datum.Name, text):
    File "C:\Program Files\Python37\lib\re.py", line 230, in finditer
      return _compile(pattern, flags).finditer(string)
    File "C:\Program Files\Python37\lib\re.py", line 286, in _compile
      p = sre_compile.compile(pattern, flags)
    File "C:\Program Files\Python37\lib\sre_compile.py", line 764, in compile
      p = sre_parse.parse(p, flags)
    File "C:\Program Files\Python37\lib\sre_parse.py", line 930, in parse
      p = _parse_sub(source, pattern, flags &amp; SRE_FLAG_VERBOSE, 0)
    File "C:\Program Files\Python37\lib\sre_parse.py", line 426, in _parse_sub
      not nested and not items))
    File "C:\Program Files\Python37\lib\sre_parse.py", line 651, in _parse
      source.tell() - here + len(this))
  re.error: nothing to repeat at position 0
  </code></pre>