$ ./guess_the_languageRegex
Regex · hard · #44

What does this expression return?

'xaaay'.match(/a*?/)[0]
  1. ''
  2. 'a'
  3. 'aaa'
  4. null
a*? is satisfied by zero characters, so it matches the empty string at index 0.
Play Regex ▸