6 kyu
Convert string to camel case
69,867 of 203,678jhoffner
Description:
Complete the method/function so that it converts dash/underscore delimited words into camel casing. The first word within the output should be capitalized only if the original word was capitalized (known as Upper Camel Case, also often referred to as Pascal case). The next words should be always capitalized.
Examples
"the-stealth-warrior"
gets converted to "theStealthWarrior"
"The_Stealth_Warrior"
gets converted to "TheStealthWarrior"
"The_Stealth-Warrior"
gets converted to "TheStealthWarrior"
Regular Expressions
Algorithms
Strings
Similar Kata:
Stats:
Created | Apr 26, 2013 |
Published | Jul 25, 2013 |
Warriors Trained | 500906 |
Total Skips | 52427 |
Total Code Submissions | 828526 |
Total Times Completed | 203678 |
JavaScript Completions | 69867 |
CoffeeScript Completions | 163 |
Ruby Completions | 5261 |
Haskell Completions | 1238 |
Python Completions | 66310 |
C# Completions | 13110 |
C++ Completions | 10561 |
Java Completions | 24092 |
Elixir Completions | 522 |
R Completions | 253 |
Objective-C Completions | 37 |
PHP Completions | 5599 |
Go Completions | 3877 |
PowerShell Completions | 129 |
Julia Completions | 111 |
Kotlin Completions | 2001 |
Scala Completions | 624 |
F# Completions | 72 |
Factor Completions | 13 |
Lua Completions | 128 |
Rust Completions | 1145 |
COBOL Completions | 19 |
Crystal Completions | 15 |
C Completions | 1299 |
TypeScript Completions | 1032 |
Total Stars | 3406 |
% of votes with a positive feedback rating | 88% of 16985 |
Total "Very Satisfied" Votes | 13322 |
Total "Somewhat Satisfied" Votes | 3343 |
Total "Not Satisfied" Votes | 320 |