fork download
  1. import re
  2. p = re.compile("[AG].{2}(?:ATG|ATA|AAG).G")
  3. regex_result = p.search('ZZZAXXATGXGZZZ')
  4. print regex_result.group()
  5. # => AXXATGXG
Success #stdin #stdout 0.01s 9016KB
stdin
Standard input is empty
stdout
AXXATGXG