Retrieve email id from a given string


#1

Hi

I want retrieve email id’s from given input values.

Below are the input strings.

string1 : “x#yr123@outlook.com”-
string2: "My email is like you ymax@ymail.com"
string 3: “y, x@-,& you are so, xyz@gmail.com1234” -

output :
yr123@outlook.com
ymax@ymail.com
xyz@gmail.com

Example:

Thanks,
Sreeni


#2

Hello!

I didn’t understand your problem. Could you please be more specific?

Regards,


#3

Example

i am giving some text value which contain emaild id. i want display only email id

text :
“y, x@-,& you are so, xyz@gmail.com1234”

from above text how can i get email id like "xyz@gmail.com"

Thanks


#4

https://regex101.com/r/PLSUHj/3

Above regex should work.You can search the forum on how to use Regex Matches.


#5

Hi,

Here we go to apply regex for validation of email:

Thanks,
Girish


#6

Hi @sreenu_uipath
Please follow my code Retrieve email id from a given string.xaml (6.3 KB)


#7

Thanks :slight_smile:


#8

Thanks for help :slight_smile: