SyntaxFix
Write A Post
Hire A Developer
Questions
Use this...
var all_matches = your_string.match(re); console.log(all_matches)
It will return an array of all matches...That would work just fine.... But remember it won't take groups in account..It will just return the full matches...