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