Hi,
When do you use * and when ? to look for elements that may exist in a string?
let str = favourite
let regex1 = /favou*rite/;
let regex2 = /favou?rite/;
regex1.test(str) // returns true
regex2.test(str) // returns true
Do they mean the same thing? I don’t understand how they are different
Greets,
Karin