Created
June 12, 2020 19:27
-
-
Save nitayneeman/c8f6d484b6a8aca56ed5f22c1dc1f72c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const regex = /t(e)(st(\d?))/g; | |
const result = 'test1test2'.matchAll(regex); | |
const [matchingValue, matchingValue2] = result; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment