i have data like below, i need to extract the full name of 1st match between “Name:” and “ECI:” by using Regex, please help.
“KYC Summary
Ticket # : 4567856789
Date : Aug 25, 2022 2:44am
KYC type: Review
Name: Arjun M Singh
ECI: 8996909
GWM ID: f098678685
Yes X No
Type Information
Code
FirstName
Arjun
Middle Name
M
Last name
Singh
Type Information
Code
Name: Arjun M Singh
ECI:
8996909
GWM ID: f098678685
Date
Place
Code
Name: Arjun M Singh
ECI:
8996909
GWM ID: f098678685
abcd
place”
Thanks Sudarsan…!, it is working fine. But when i applied the same regex by changing the keywords for other fields getting blank. Can you help me to extract the fields “Employment Status”,“Company Name”,“Position” “Duration in years” and also "Description of the business.
KYC Summary
Ticket # : 4567856789
Date : Aug 25, 2022 2:44am
KYC type: Review
Name: Arjun M Singh
ECI: 8996909
GWM ID: f098678685
Yes X No
Type Information
Code
FirstName
Arjun
Middle Name
M
Last name
Singh
Type Information
Code
Name: Arjun M Singh
ECI:
8996909
GWM ID: f098678685
Date
Place
Code
Name: Arjun M Singh
ECI:
8996909
GWM ID: f098678685
abcd
place
Employment
To update read-only employment information below, go to the Core Information tab, Client Information section and click on the edit button.
Employed
Employment Status Employed
Company Name IBM IIND PVT LTD.
Position System Engineer
Duration in years 17 years 10 months
Employment Address
Address Line 1
North Michigan Avenue
Address Line 2
Address Line 3
Country
UNITED STATES
State/Province
ILLINOIS
Years of service in the industry
17
Description of the business (i.e. history of the business including notable products/services, areas of operation, and types of clients served)
Valor Equity Partners is an operational growth investment firm focused on non-control and control investments in high growth companies across various stages of development. For decades, we have served our companies with unique expertise to solve the
challenges of growth and scale. We partner with leading companies and entrepreneurs who are committed to the highest standards of
excellence and the courage to transform their industries.
System.RegularExpressions.Regex.Match(InputString,"(?<=Duration in years\n).*").ToString
Description of the business
System.RegularExpressions.Regex.Match(InputString,"(?s)(?<=Description of the business \(i.e. history of the business including notable products\/services, areas of operation, and types of clients served\)\n\n)(.*?)(?=\.\s)").ToString
If you want the description upto Position means use this pattern @shaikmdrafi
(?s)(?<=Description of the business \(i.e. history of the business including notable products\/services, areas of operation, and types of clients served\)\n\n)(.*?)(?=Position)