What does this expression return?
[/a.b/.test('a\nb'), /a.b/s.test('a\nb')]
- [false, true]
- [true, true]
- [false, false]
- [true, false]
The
Play Regex ▸
s (dotAll) flag lets . also match line terminators such as \n.