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?
Solved! Go 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.
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.
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...
This works perfectly, thank you! I should've mentioned that I'm not very familiar with regular expressions.
Thanks again!