How to check if a string has email format?

Hello,

I have a string variable and I would like to check if it contains an email with the format "example@example2.com".

Example and example2 are just examples, so what I want to check is: something @ something . something

Thank you very much.

Regards

Hi @pal1910

You can use Is Match activity just set its properties like -

input should be your string- testemail@xxx.yyy , Pattern - “^([\w.-]+)@([\w-]+)((.(\w){2,3})+)$” , Result - (Boolean value)

It its a match then string has a valid email address

Thanks,
Prankur

2 Likes

Thanks a lot .