Skip to content

Instantly share code, notes, and snippets.

@Octagon-simon
Created July 1, 2022 20:56
Show Gist options
  • Select an option

  • Save Octagon-simon/bc37c9932e822729db919aaa84c0d690 to your computer and use it in GitHub Desktop.

Select an option

Save Octagon-simon/bc37c9932e822729db919aaa84c0d690 to your computer and use it in GitHub Desktop.
//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