Vicky_K
(Vicky K)
July 24, 2023, 6:58am
1
Primary Payer: XYZ Comany
Member ID: ABCD123ACD
Secondary Payer: YXZ Company
Member ID: XYZ32R390AD
Tertiary Payer: MNO Company
Member ID: FLMN3333MMMN
This above 3 are input we received in website need to extract Member ID for each of payer key word is Primary Payer, Secondary Payer and Tertiary Payer
need to extract Member Id using Regex can you give me correct Regex to extract it
Expected output :
ABCD123ACD
XYZ32R390AD
FLMN3333MMMN
Thanks,
Vicky
hey @Vicky_K , Try (?<=Member ID:) .*
1 Like
rlgandu
(Rajyalakshmi Gandu)
July 24, 2023, 7:02am
4
Vicky_K:
Primary Payer: XYZ Comany
Member ID: ABCD123ACD
Secondary Payer: YXZ Company
Member ID: XYZ32R390AD
Tertiary Payer: MNO Company
Member ID: FLMN3333MMMN
@Vicky_K
(?<=Member ID:\s)[A-Z]+\w+
1 Like
Yoichi
(Yoichi)
July 24, 2023, 7:10am
5
Hi,
If you need to extract them separately, the following will help you.
Primary Payer
System.Text.RegularExpressions.Regex.Match(yourString,"(?<=Primary Payer:.*\r?\nMember ID:).*").Value
Secondary Payer
System.Text.RegularExpressions.Regex.Match(yourString,"(?<=Secondary Payer:.*\r?\nMember ID:).*").Value
Tertiary Payer
System.Text.RegularExpressions.Regex.Match(yourString,"(?<=Tertiary Payer:.*\r?\nMember ID:).*").Value
Sample20230724-1L.zip (3.9 KB)
Regards,
1 Like
mkankatala
(Mahesh Kankatala)
July 24, 2023, 7:11am
6
Hi @Vicky_K
Use the below regex expressions.
System.Text.RegularExpressions.Regex.Matches(yourstringinput.ToString,“((?<=Member ID:\s+).*)”)
Hope it helps!!
1 Like
vrdabberu
(Varunraj Dabberu)
July 24, 2023, 7:11am
7
@Vicky_K
Use the below regex expression
(?<=ID.\s+).*
Regards
1 Like
Vikas_M
(Vikas M)
July 24, 2023, 7:20am
9
Vicky_K:
Primary Payer: XYZ Comany
Member ID: ABCD123ACD
Secondary Payer: YXZ Company
Member ID: XYZ32R390AD
Tertiary Payer: MNO Company
Member ID: FLMN3333MMMN
Hey @Vicky_K
Please try below Regex
(?<=Member ID: ).*
Hope It helps you
1 Like
lrtetala
(Lakshman Reddy)
July 24, 2023, 9:44am
10
@Vicky_K
If you got the solution for your query. Please mark it as solution to close the loop.
Forum FAQ - How to mark a post as a solution
This document is part of our beginners guide .
This article will teach you how to properly mark a post as a solution.
We were closely following our last UiPath Forum feedback round! topic and carefully extracted all the bits of feedback that was provided. As such, we would like to tackle the topic of solutions on our Forum and how to properly use them.
When is the topic resolved?
The topic can be considered resolved when the topic author has found…
Regards,
1 Like
Hello @Vicky_K ! Try this:
Primary Payer:\s*(\w+).?Secondary Payer:\s (\w+).?Tertiary Payer:\s (\w+)
Hope it helps
1 Like
system
(system)
Closed
August 5, 2023, 4:30am
13
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.