How to create a regex code that works for all email types?

I just have one query Kal.
I saw a thread that talks about validating an email, however, it only mentions the code for @gmail.com. I was wondering how the following code can be modified to use it for any domain.
regex(., ‘^[A-Za-z0-9._%±]+@gmail+[.][A-Za-z]{2,}$’)

Hi @lakshayjain,

This post would help you you to code your regex as you need:

1 Like

That worked, thanks for your help.

2 Likes