Created
July 1, 2022 20:56
-
-
Save Octagon-simon/bc37c9932e822729db919aaa84c0d690 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
| //the string | |
| const str = "My name is simon ugorji"; | |
| //using match method on it | |
| console.log(str.match(new RegExp('simon'))); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment