Regular Expressions 101

Community Patterns

1...45678...11

Start and Ends with same Letter

0

Regular Expression
Java 8

"
^([a-z]|[A-Z]).*\1$
"
gm

Description

regex for a string that starts and ends with the same letter

Submitted by anonymous - a year ago