Regex Expression for the given Input

Regex Expression to get the Domain Name for the given input ,
Domain:tcs.com

Hi @mohan_sai365 ,

Could you check with the below Regex :

(?<=@).*?(?=\.)

Expression :

System.Text.RegularExpressions.Regex.Match("Domain@tcs.com","(?<=@).*?(?=\.)").Value.ToString

image

1 Like

@mohan_sai365

you can actually use a split activity directly as well

str.Split({":"},StringSplitOptions.None)(0)

image

cheers

2 Likes

Hi @mohan_sai365,

(?<=Domain:)[a-zA-Z0-9-]+.[a-zA-Z]{2,}
image

1 Like

Hi, I need to get the Domain and email id from the attached pdf and store it in Excel using Matches Activity, Can anyone help me on this.
DomainRegisterCompanies_04_03_2023.pdf (322.8 KB)

Hi @mohan_sai365 ,

Check this below attached workflow,
Uipath_ExtractPdf.xaml (9.9 KB)

Output File:-
Output.xlsx (7.7 KB)

Package Used:-
image

Hope this might help you :slight_smile:

4 Likes

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