Skip to content

Instantly share code, notes, and snippets.

@martinwairegi
Created March 27, 2023 05:34
Embed
What would you like to do?
const regex = new RegExp(this.regex);
const str = "hello";
const match = regex.test(str);
console.log(match); // true or false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment