fork(5) download
  1. import re
  2. p = re.compile(r'(?i)(some)string')
  3. test_str = "somestring"
  4. print([(x.group(0),x.group(1)) for x in p.finditer(test_str)])
Success #stdin #stdout 0.02s 9016KB
stdin
Standard input is empty
stdout
[('somestring', 'some')]