Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

JavaScript Splitting a string using a regular expression

const sampleText = "Hello 1 World 2 !!!"
console.log(sampleText.split(/(d)/))
Source by itsjavascript.com #
 
PREVIOUS NEXT
Tagged: #JavaScript #Splitting #string #regular #expression
ADD COMMENT
Topic
Name
6+7 =