regex pattern for words that begin with a vowel and ends with a consonant code example
Example: match a string that starts and ends with the same vowel
const regex = /\b(?<vowel>[aeiou])(\w*\k<vowel>)?\b/
const regex = /\b(?<vowel>[aeiou])(\w*\k<vowel>)?\b/