first and last char vowel reg exp same char code example Example: first and last char vowel reg exp same char var re = /^([aeiou]).*\1$/