fork download
  1. import re
  2.  
  3. p = re.compile(r'((?<!\d)\d{2}(?!\d)|(?!.*(?<!\d)\d{2}(?!\d)))')
  4. r = p.search('wqd123dsel78ffgr')
  5. print r.groups()
Success #stdin #stdout 0.09s 10824KB
stdin
Standard input is empty
stdout
('78',)