Extract all email address from a text

Hi everyone,

I have a text:
" Hi, I’m Henry. My email: abc@gmail.com and henry@gmail.com"

I want to result :
abc@gmail.com;henry@gmail.com

Thank,

Hi @longnt23,

Use Matches activity
Properties
Input : YourInputString
Pattern : ([\w\.\-]+)@([\w\-]+)((\.(\w){2,3})+)
Result: iEnumResult → IEnumberable<Match>
after that use assign activity to get the data

use for loop activity loop through the iEnumResult
you will get the all mail id.

Regards,
Arivu

4 Likes

regex.xaml (6.8 KB)
@longnt23

2 Likes

Thank you!

Hello @arivu96,

from where can we learn patterns you have any source please dispatch link?

Thanks,
Pankaj

Hi @Pankaj.Patil,

Refer this post

Regards,
Arivu

Hello @arivu96,

Thanks Buddy :slight_smile:

Kinds,
Pankaj