Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js split string on capital letter second

'ThisIsTheStringToSplit'.split(/(?=[A-Z])/); // positive lookahead to keep the capital letters
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #js #split #string #capital #letter
ADD COMMENT
Topic
Name
8+2 =