I am trying to verify if a string is properly formatted. Below are a few of the formats that come through. These are just random typed items.
1abc.abc
ab2.abc
abc.abc.abt
aerj/adfa.tht
The before the . can be symbols alpha and numeric. After the . The check im trying to do is check the end of the string for the . followed by no more than 4 alpha characters. I believe this can be done with regex but I do not know where to start on it.
An invalid string is anything containing numbers, symbols or greater than 4 characters following the period
abc.be valid? How about.? or.abc?