What does this expression return?
'regex'.replace(/[aeiou]/g, '')
- 'rgx'
- 'ee'
- 'regx'
- 'rgex'
The class
Play Regex ▸
[aeiou] matches any one vowel, and g removes all of them.'regex'.replace(/[aeiou]/g, '')
[aeiou] matches any one vowel, and g removes all of them.