using regular expression to check if string starts and ends with same vowel code example Example: regular expression starts and ends with same symbol /^(a|e|i|o|u).*\1$/