Extract all email address from a text

email
studio
variable

#1

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,


#2

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


#3

regex.xaml (6.8 KB)
@longnt23


#4

Thank you!


#5

Hello @arivu96,

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

Thanks,
Pankaj


#6

Hi @Pankaj.Patil,

Refer this post

Regards,
Arivu


#7

Hello @arivu96,

Thanks Buddy :slight_smile:

Kinds,
Pankaj