$ ./guess_the_languageRegex
Regex · easy · #6

What does this expression return?

'a1b2c3'.replace(/\d/, '')
  1. 'ab2c3'
  2. 'abc'
  3. 'a1b2c'
  4. '123'
Without the g flag, replace only replaces the first match.
Play Regex ▸