Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js exec find all

// Use match instead
'a a a'.match(/(a)/g).length  // outputs: 3
 
PREVIOUS NEXT
Tagged: #js #exec #find
ADD COMMENT
Topic
Name
9+9 =