Skip to content

Instantly share code, notes, and snippets.

Created March 27, 2023 05:34
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