cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Workflow Hero

Nintex Forms RegEx Checking for Single Character

Jump to solution

Hello,

 

I'd like to check for only an "@" symbol in Nintex Forms for a text field. This is for email address, and I'd only like to check to make sure they put an "@" somewhere in the string. That's all I need.

 

I'm getting the feeling it's something simple but I'm not sure what I'm doing wrong. I'm trying:

\@

and

/(@)/g

but neither will validate.

 

Would anyone have thoughts on what I'm doing wrong?

 

 

Labels: (1)
0 Kudos
Reply
4 Replies
Workflow Hero

Re: Nintex Forms RegEx Checking for Single Character

Jump to solution

the first one '\@' should work, or even simply single '@'.

 

note that regular expression validation is only applied if control is not empty. so apert from pattern validatio you should make it mandatory or assign it a validation rule so that empty value is not acce[ted.

0 Kudos
Reply
Workflow Hero

Re: Nintex Forms RegEx Checking for Single Character

Jump to solution

Thanks for your reply! I've tried both, '\@' and '@' and it still won't validate. Here are my settings. I'm not sure what I'm missing.

 

Capture.PNGCapture02.PNG

0 Kudos
Reply
Workflow Hero

Re: Nintex Forms RegEx Checking for Single Character

Jump to solution

whole regular expression should look like 

.*[@].*

 

or better (avoids inputs like 'test@' or '@test.com'

.+[@].+

you have to declare some characters may be before and after the '@' sign.

I understood you only ask how to use '@' sign within the expression...

Reply
Workflow Hero

Re: Nintex Forms RegEx Checking for Single Character

Jump to solution

This works perfectly, thank you! I should've mentioned that I'm not very familiar with regular expressions.

 

Thanks again!

0 Kudos
Reply