fork download
  1. import re
  2. b = 'this is a good day to die hard'
  3. jeff = re.search('good (day|night) (.+)', b)
  4. if jeff:
  5. print jeff.group(1)
  6. print jeff.group(2)
Success #stdin #stdout 0s 23352KB
stdin
Standard input is empty
stdout
day
to die hard