const text = 'JavaScript is amazing';
const result = text.match(/[aeiou]/gi);
This code performs vowel extraction: 1) Uses regex to match vowels case-insensitively, 2) Returns array of all vowel matches, 3) Global flag enables multiple matches, 4) Case-insensitive flag matches both cases, 5) Common in text analysis, 6) Useful for linguistics applications, 7) Pattern matching with character classes, 8) Demonstrates regex-based string analysis.