Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save nitayneeman/28347a6cc8b2a393e45b9cea4b5ec609 to your computer and use it in GitHub Desktop.
Save nitayneeman/28347a6cc8b2a393e45b9cea4b5ec609 to your computer and use it in GitHub Desktop.
const regex = /t(e)(st(\d?))/g;
const result = 'test1test2'.matchAll(regex);
console.log(result); // [RegExpStringIterator]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment