fork download
  1. import re
  2.  
  3. print [n.group(1) for n in re.finditer('(([a-z]+)\.(txt|html))', 'abc.txt def.html')]
  4.  
Success #stdin #stdout 0.09s 10840KB
stdin
Standard input is empty
stdout
['abc.txt', 'def.html']