$ ./guess_the_languageRegex
Regex · easy · #8

What does this expression return?

'a1b22c333'.match(/\d+/g)
  1. ['1', '22', '333']
  2. ['a1', 'b22', 'c333']
  3. ['1', '2', '3']
  4. ['a', 'b', 'c']
\d+ grabs each run of one or more digits, and g returns every match.
Play Regex ▸