fork download
  1. import re
  2.  
  3. print(re.findall(r'-\s*([^\W_]+)', '12 - mystr'))
  4. print(re.findall(r'-\s*([^\W_]+)', 'qwertyuio'))
Success #stdin #stdout 0.02s 27728KB
stdin
Standard input is empty
stdout
['mystr']
[]