fork download
  1. import re
  2. def repl(m):
  3. return m.group(1).upper()
  4.  
  5. ss = 'hello_string_processing_in_python'
  6. print re.sub(r"_(\w)", repl, ss)
  7.  
Success #stdin #stdout 0.01s 7692KB
stdin
Standard input is empty
stdout
helloStringProcessingInPython