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