Text extraction through string operation


Can anyone assist me how to extract the values from two key words.
I want to extract my email address only from the given example.

Eg: ‘“VidhanMistry”’ < vidhan.mistry@gmail.com >



You can use below regex to extract email address (one or many) from the string.

Regex : [a-zA-Z0-9-.]{1,}@[a-zA-Z0-9-]{1,}.[a-zA-Z]{1,}


Use Matches Activity as below

Hope this helps you


During email automation, I am storing email To in a variable, so how do I extract value from variable. can u plz show any other method such as split or replace function or may be the easiest one. As i am new to uipath.


Check Matches is the easiest solution

check as below

from above lets suppose you are storing the mail body in samplestring

place matches and give regex as (?<=\<)(.*?)(?=\>)

Mark as solution if this helps


Thanks Buddy…

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.