fork download
  1. import re
  2. word = 'testing: '
  3. word = re.sub(r'[a-zA-Z]+:', r'"\g<0>"',word)
  4. print(word)
Success #stdin #stdout 0.02s 27712KB
stdin
Standard input is empty
stdout
"testing:"