How to use custom validation with wildcards? | XM Community
Skip to main content
Hi,

I am trying to include a custom validation in my survey that checks if an email address is in the right format. I am trying to check for a single letter followed by a . (dot) followed by an undefined amount of characters. I also want it to check that our domain is not included.

For example address



f.manchester (validates True)

m.bob (validates True)

mhoward (validates False)

m.bob@snhu.edu (validates False)



I've read similar threads where people do this with numbers but I couldn't find anything with people doing it with letters.



Thanks for your help!
In custom validation add conditions like if doesn't contains "." or does not contain ".com" it throw error.
Use regex: ^[a-z]\\\\.[a-z]{1,}$
Thanks, TomG that worked! Is there a way for the characters after the (.) to be either letters or numbers? Forget my names could also include numbers at times and the numbers could be double digits at times.
> @workerbee2018 said:

> Thanks, TomG that worked! Is there a way for the characters after the (.) to be either letters or numbers? Forget my names could also include numbers at times and the numbers could be double digits at times.



^[a-z]\\\\.[a-z0-9]{1,}$

Leave a Reply