$ ./guess_the_languageRegex
Regex · hard · #49

What does this expression return?

new RegExp('\d+').test('42')
  1. false
  2. true
  3. null
  4. SyntaxError
In a string literal '\d' is just "d", so the regex becomes /d+/; write '\\d+' instead.
Play Regex ▸