JavaScript String Casing

Converting between string casing formats is common, yet tiresome to do by hand. This collection of snippets will help you convert between the most common string casing formats using JavaScript and a sprinkle of regular expressions.