Here is my string to original:
myCamelCaseSTRINGToSPLIT
expected result:
my Camel Case STRING To SPLIT
Current regex I'm using is
(?=[A-Z])
Any help will be appriciated
Here is my string to original:
myCamelCaseSTRINGToSPLIT
expected result:
my Camel Case STRING To SPLIT
Current regex I'm using is
(?=[A-Z])
Any help will be appriciated
Please use this regular expression.
yourString.replace(/([A-Z]+)/g, " $1").replace(/([A-Z][a-z])/g, " $1")
or
yourString.replace(/([A-Z]+)/g, " $1")