/hello/
/(h|H)ello/
/.ello/
const text ='hello'
const regex= new RegExp('lvl')
console.log(regex.test(text))
// true
exec
match
PATTERN
(H|h)ello => hello or Hello
(H|h)?ello making hH optional
Ranges and quantifiriers
any char in the brackets
[tse]
[a-zA-Z]