Where does \no come from

Hi,

I’m trying to complete this exercise although the given solution works, I cannot understand why it works. Primarily where does \no come from. I can’t find reference to it in previous exercises or on google. is this a special case?

Describe your issue in detail here.

Your code so far


let ohStr = "Ohhh no";
let ohRegex = /Oh{3,6}\sno/ig; // Change this line
let result = ohRegex.test(ohStr);

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.91 Safari/537.36

Challenge: Specify Upper and Lower Number of Matches

Link to the challenge:

The what? There is no \no.
There is a \sno, meaning “whitespace (\s) followed be the letters ‘no’”

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.