puts "this-is-a-string".gsub(/-(\w)/) {$~[1].upcase}
Standard input is empty
thisIsAString
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!