Jump to content

Recommended Posts

Posted

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?

Posted

@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)

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...