Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

convert camelCase letter to Sentence case

const text = 'helloThereMister';
const result = text.replace(/([A-Z])/g, " $1");
const finalResult = result.charAt(0).toUpperCase() + result.slice(1);
console.log(finalResult);
 Run code snippet
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #convert #camelCase #letter #Sentence #case
ADD COMMENT
Topic
Name
3+8 =