cancel
Showing results for 
Search instead for 
Did you mean: 
Nintex Newbie

Email validation

Jump to solution

I wanted to validate email addresses and I found a solution in this forum, however, I used the same solution on two forms.  The first form works and the second form says invalid email even though I am using the correct format.

 

This is what I did.  On the email field, double-click, then Control Settings - Single Line Textbox, click validation, then clicked yes for use regular expression, then in the regular expression box, I have the following.  \b[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}\b 

I also attached screenshots.  I don't understand why it works on one form and doesn't in another.  Is there something I am missing?  Thank you.

Labels: (1)
Tags (2)
Reply
13 Replies
Highlighted
Nintex Newbie

Re: Email validation

Jump to solution

What is the email address you are testing?

Try copying/pasting from the expresstion that works, but paste it on notepad and then copy it again.

Reply
Highlighted
Nintex Newbie

Re: Email validation

Jump to solution

Thank you.  It works.

Reply
Highlighted
Nintex Newbie

Re: Email validation

Jump to solution

Great!, please mark the answer as correct

View solution in original post

0 Kudos
Reply
Highlighted
Nintex Newbie

Re: Email validation

Jump to solution

hi 

I have a problem trying to set a regular expression in text box field, What I'm trying to do is validate the format like this XXXX-XXXX-XXXX, and I'm using this Regex  \b[A-Z0-9]{4}-[A-Z0-9]{4}-[A-Z0-9]{4}\b  but seems to be does not working any of my tries 

 

any help will be very wellcome 

 

0 Kudos
Reply
Highlighted
Nintex Employee
Nintex Employee

Re: Email validation

Jump to solution
Hi.

Instead of [A-Z0-9]{4}, use lower case [a-z0-9]{4}
0 Kudos
Reply
Highlighted
Nintex Newbie

Re: Email validation

Jump to solution

Hi Fernando,

I've tried more than ten times but it's not working, I copy and paste on notepad, type the exertion, :-(

do you have any suggestion for me?

Thanks

0 Kudos
Reply
Highlighted
Automation Master
Automation Master

Re: Email validation

Jump to solution

@bf_parvaz ...use below expression:

 

^[A-Za-z0-9](([_\.\-]?[a-zA-Z0-9]+)*)@([A-Za-z0-9]+)(([\.\-]?[a-zA-Z0-9]+)*)\.([A-Za-z]{2,})$

0 Kudos
Reply
Highlighted
Nintex Newbie

Re: Email validation

Jump to solution
Thanks mate!
0 Kudos
Reply
Highlighted
Nintex Newbie

Re: Email validation

Jump to solution

Hi Kunalpatel, Would you please advise how I should read the expression?  I need to create input mask for my other fields like phone number , website, etc

I tried

 ###.###.####

^[0-9]{3}\.[0-9]{3}\.[0-9]{4}$

Didn't work! :catsad:

@kunalpatel

Tags (1)
0 Kudos
Reply