fork(1) download
  1. import re
  2. p = re.compile(r'[abcgr]([a-z])\1[ldc]')
  3. s = "reel reed have that with this they"
  4. print([x.group(0) for x in p.finditer(s)])
Success #stdin #stdout 0.01s 9016KB
stdin
Standard input is empty
stdout
['reel', 'reed']