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:
Rate This Regex
User Review
( votes)Expression Flags
Flags | Description |
---|---|
i |
Ignore case sensitive. |
g |
Allows global search. |
m |
Allows multiline search. |