fork(1) download
  1. import re
  2. text = 'EffectsRelaxed96% VotedHappy79% VotedEuphoric67% Voted'
  3. print( re.sub(r'([a-z])([A-Z0-9])', r'\1 \2', text).replace("Effects", "Effects:").replace("Voted", "Voted,").rstrip(',') )
Success #stdin #stdout 0.03s 9484KB
stdin
Standard input is empty
stdout
Effects: Relaxed 96% Voted, Happy 79% Voted, Euphoric 67% Voted