title: Regex redefinition error
body: <p>I am using python, and run into some redefinition error, I know they are redefinition but logically its not possible to reach that since its an or. Is there a way to get around this? I appreciate for any help in advance</p>
  
  <p>/python-2.5/lib/python2.5/re.py", line 233, in _compile
      raise error, v # invalid expression
  sre_constants.error: redefinition of group name 'id' as group 9; was group 6</p>
  
  <pre><code>
  import re
  
  DOB_RE =  "(^|;)DOB +(?P&lt;dob&gt;\d{2}-\d{2}-\d{4})"
  ID_RE =   "(^|;)ID +(?P&lt;id&gt;[A-Z0-9]{12})"
  INFO_RE = "- (?P&lt;info&gt;.*)"
  
  PERSON_RE = "((" + DOB_RE + ".*" + ID_RE +  ")|(" + \
                     ID_RE  + ".*" + DOB_RE + ")|(" + \
                     DOB_RE + "|" + ID_RE + ")).*(" + INFO_RE + ")*"
  
  PARSER = re.compile(PERSON_RE)
  
  samplestr1 = garbage;DOB 10-10-2010;more garbage\nID PARI12345678;more garbage
  samplestr2 = garbage;ID PARI12345678;more garbage\nDOB 10-10-2010;more garbage
  samplestr3 = garbage;DOB 10-10-2010
  samplestr4 = garbage;ID PARI12345678;more garbage- I am cool
  
  </code></pre>