t461.py 191 B

1234567
  1. import re
  2. print re.findall("^\s*$", "")
  3. print re.findall("\s*|a", " a b")
  4. print re.findall("a|\s*", " a b")
  5. print re.findall("\s*|a", " ba b")
  6. print re.findall("a|\s*", " ba b")