Regular expression for all strings starts with ab and ends with ba is code example Example: regular expression starts and ends with same symbol /^(a|e|i|o|u).*\1$/