From “Rpa Robot 1 Robot” firstname.lastname@example.org this…How can i get ,Rpa Robot 1 Robot?
Can you explain with more details?
Can you elaborate your query?
I understood that you need to extract the email address right?
You can try with regex expression
I Only want the display name that is “Rpa Robot 1 Robot”
Please try this pattern
Can you share the format of the text, that need to extract
this is the format of the text ? “Rpa [Robot]1 Robot”
Whenever i am trying to extract the from email address by using mail.from.tostring i am geeting the display name and email address so i only want the display name that is “Rpa Robot 1 Robot” I hope that makes sense to you
Thanks but how can i store that in a variable?
we get the value from mail.from.tostring as “Rpa Robot 1 Robot” email@example.com
to extract only display name
Create assign variable str_FromMail = mail.from.tostring
Create another assign var str_RegexPattern =".+" (you need to escape double quotes)
Create another assign var - str_displayname = system.text.regularexpression.regex.match(str_FromMail, str_Regexpattern).tostring - this will give expected value
I want to remove the double quotes
In the str_Pattern variable use this regex - (?<=").*?(?=")
I Got the answer Thank you!!!
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.