check the same vowel in javascript code example Example: regular expression start and end with same character javascript /^([aeiou]).*\1$/i