fork(8) download
  1. import re
  2. reg = re.compile("([a-z]+)(8?)")
  3. s = "ccc8"
  4. m = reg.match(s)
  5. if m:
  6. print(m.groups())
Success #stdin #stdout 0.03s 9404KB
stdin
Standard input is empty
stdout
('ccc', '8')