Computer Science, asked by Anitmahesh14061, 1 year ago

How to write JavaScript Regular Expression for multiple matches?

Answers

Answered by PiyushSinghRajput1
1

If our regular expression uses the " g " flag, you can use the exec() method multiple times to find successive matches in the same string. When you do so, the search starts at the substring of str specified by the regular expression's lastIndex property ( test() will also advance the lastIndex property).

Answered by karan4185
0

the full amount is possible

Similar questions