$ ./guess_the_languageRegex
Regex · medium · #29

What does this expression return?

'100USD 200EUR'.match(/\d+(?=EUR)/)[0]
  1. '200'
  2. '100'
  3. '200EUR'
  4. 'EUR'
The lookahead (?=EUR) requires "EUR" to follow but does not include it in the match.
Play Regex ▸