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