fork download
  1. import re
  2. regex = r"(c(?:\+{2}|#)|\.net\b)|[!,.:;/—]|-(?=[\d.])"
  3. text = 'Must-have skills: -.Net programming experience; -2 years experience in C++; C#/.Net, C++/.Net, C./.Net.'
  4. text = re.sub(regex, r"\1 ", text, 0, re.IGNORECASE)
  5.  
  6. if text:
  7. print (text)
Success #stdin #stdout 0.02s 27760KB
stdin
Standard input is empty
stdout
Must-have skills   .Net  programming experience   2 years experience in C++   C#  .Net   C++  .Net   C  .Net