Does anyone has an explanation why this regular expression test returns false in the browser’s console?
In the screenshot above, I create a regex (first line), then test it against a string that should match, but,oddly enough, the test returns false (second line).
What’s strange is that the test returns “true” as long as I don’t press “Enter” (third line).
Regards,
Cyrille