A Regular Expression to validate and match a string that starts and ends with an alphabetic character.
/^[a-z].*[a-z]$/igm
Matches:
- abcd
- regex pattern
- regexpattern
Non-matches:
- Regexpattern1
- 2Regexpattern
See Also:
- Regular Expression To Match Consecutive Alphabetic Characters
- Alphanumeric Regular Expression
- Regex To Match Words That Start With A Specific Character