I have written a regEx in java for:
- Expression should start with a
letter
. - Followed by
letter
ornumber
orperiod
or@
- Ends with
abc.com
orxyz.com
Regex i tried:
^[A-Za-z][A-Za-z0-9@\.]*?[abcxyz]\.com$
I think there is some problem in the 3rd condition. Can somebody please correct me or provide me a better regEx. Thanks in advance.