What does this expression return?
'100USD 200EUR'.match(/\d+(?=EUR)/)[0]
- '200'
- '100'
- '200EUR'
- 'EUR'
The lookahead
Play Regex ▸
(?=EUR) requires "EUR" to follow but does not include it in the match.