Created
August 17, 2023 16:08
-
-
Save suhailgupta03/69929cb1248b66fdf2e8a4a56bdaadac 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
let string = `Hi! Recently India celebrated its | |
Independence Day.` | |
let regex = /[izx]/ | |
// [izx] means match any of the characters | |
// 'i', 'z', or 'x' | |
console.log(regex.test(string)) // true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment