$ ./guess_the_languageRegex
Regex · medium · #37

What does this expression return?

[/a.b/.test('a\nb'), /a.b/s.test('a\nb')]
  1. [false, true]
  2. [true, true]
  3. [false, false]
  4. [true, false]
The s (dotAll) flag lets . also match line terminators such as \n.
Play Regex ▸