Need to copy Name, Phone and Email


#1

Hi,
I am new to Uipath and trying to work with string manipulation. From the text shown below, I need to read only the name, phone number and email contents. Can anyone help me out with the code please. Any help will be appreciated. Thanks in advance.Capture


#2

Hi @suwalruchan365,

Refer this post

Name Value:
Use Matches activity
Properties
Input : strMailContent
Pattern : ((?<=Name:).*(?=Phone:))
Result: iEnumResult ->IEnumberable
after that use assign activity to get the data
strName=iEnumResult (0).ToString()

else
you can split the string using Environment.newLine
then split using : the second value is your value.

Regards,
Arivu


#3

Hi @suwalruchan365,
Here i have attached the source for your situation.

File : FieldsCopy.zip (2.5 KB)

Regards
Balamurugan


#4

Hi, i’m a little conflicted with the pattern. I haven’t used it yet, except I wonder how you derived it? Very useful message - thank you.