fork download
  1. import re
  2. text = "West Team 4, Eastern 3\n, test 23 99 test"
  3. rx = re.compile(r'[^\W\d_]+')
  4. print( [" ".join(rx.findall(x)) for x in text.split(',')] )
Success #stdin #stdout 0.02s 9564KB
stdin
Standard input is empty
stdout
['West Team', 'Eastern', 'test test']