Stuart Torres-Catmur Posted June 9, 2017 Share 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? Link to comment Share on other sites More sharing options...
Victor Posted June 9, 2017 Share 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) Link to comment Share on other sites More sharing options...
Stuart Torres-Catmur Posted June 13, 2017 Author Share 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. Link to comment Share on other sites More sharing options...
Victor Posted June 13, 2017 Share Posted June 13, 2017 @Stuart Torres-Catmur good stuff Link to comment Share on other sites More sharing options...
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