I dont understand, everything is working, but not this two :
Your regex unRegex should match “sun” in “The sun is out today.”
Your regex unRegex should match “pun” in “Seven days without a pun makes one weak.”
is it a bug ?
Your code so far
let exampleStr = "Let's have fun with regular expressions!"; let unRegex = /.un/gi; // Change this line let result = unRegex.test(exampleStr);
Your browser information:
User Agent is:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:60.0) Gecko/20100101 Firefox/60.0.