Answers for "javascript regex all matches match"

0

javascript regex all matches match

let array = [...str.matchAll(regexp)];

array[0];
// ['test1', 'e', 'st1', '1', index: 0, input: 'test1test2', length: 4]
array[1];
// ['test2', 'e', 'st2', '2', index: 5, input: 'test1test2', length: 4]
Posted by: Guest on July-22-2021

Code answers related to "javascript regex all matches match"

Browse Popular Code Answers by Language