Expression Validation in Mendix

0
Hi  I am using the below expression for email id validation it is accepting the emails eg:-  xyz.abc@stu.com isMatch($value, '^$|^([\w\.\-]+)@([\w\-]+)((\.(\w){2,3})+)$') But i want this expression to accept this email type also. eg.  xyz.abc@stu.def.com what should i modify in the expression.
asked
3 answers
1

Hi,

As Robert price mentioned, you can use the email regex from community commons. Here is the screenshot of how we use email regex in Mendix.

You can replace the last part after @ with your constant.

Hope it helps.

answered
0

If you are looking to validate an email address, try using the EmailAddressRegex in the Community Commons module.

https://docs.mendix.com/appstore/modules/community-commons-function-library/#48-regexes

answered
0

If you seek regex expressions take a look here

https://regexlib.com

answered