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