$ ./guess_the_languageRegex
Regex · hard · #27

What does this expression return?

'abc'.match(/(\w)+/)[1]
  1. 'c'
  2. 'a'
  3. 'abc'
  4. undefined
A quantified group keeps only its last iteration, so group 1 holds "c".
Play Regex ▸