Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

camelcase to normal text javascript

"thisStringIsGood"
    // insert a space before all caps
    .replace(/([A-Z])/g, ' $1')
    // uppercase the first character
    .replace(/^./, function(str){ return str.toUpperCase(); })
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #camelcase #normal #text #javascript
ADD COMMENT
Topic
Name
3+9 =