Stuart Torres-Catmur Posted June 9, 2017 Posted June 9, 2017 Hi We want to set up some validation on procap fields: email 4 digits max 11 digits (for phone numbers) We're not the greatest code experts. Are you able to advise us where we can find the relevant REGEX codes to apply this validation please?
Victor Posted June 9, 2017 Posted June 9, 2017 @Stuart Torres-Catmur try these: email : ^[A-Za-z0-9._%+-]+\@[A-Za-z0-9.-]+\.[A-Za-z]{2,4}$ 4 digits: ^[0-9]{4}$ max 11 digits: ^[0-9]{1,11}$ Not a REGEX expert here either so probably there are more efficient expressions for these (most likely for email)
Stuart Torres-Catmur Posted June 13, 2017 Author Posted June 13, 2017 @Victor that's great. We are in REGEX heaven now. Worked out a few others as well after playing about with them and searching on the web. Thanks for getting us started.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now