I want to do field validation to see if the value matches a pattern but am having trouble understanding the necessary regular expression. Is there a tool where you can enter a pattern and have it tell you the regular expression that will match it? Or is anyone willing to take a shot at the formula?
The patterns I need to match are (the capital letters are literal, ‘a’ is a character from A-Z or 0-9 and ‘n’ is a character from 0-9):
Aaaaaannn
Tnnnnnnnnnnnnn
Snnnnn
Fortunately these are all in separate fields, but if anyone can tell me how to validate any of these patterns in the same field, that would be helpful.
Thanks!
I use RegEx Buddy. It isn’t free but very good. Will create the required source and help you build the regex.
http://www.regexbuddy.com/
A free online version is:
http://www.regextester.com/
Probably a number of ways to write it though.