Skip to content
Advertisement

How to find all the matches?

This code helps me find text between start&end words. But the search ends after the first pair found. How to find all the matches?

JavaScript

Advertisement

Answer

Use

JavaScript

Reference: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions

https://www.w3schools.com/jsref/jsref_match.asp

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement