DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
8+2 =
Submit