Regex to get value

Hi everyone i need to extract the value from this
Its little bit hard to get valu for me can any one help on this

Input =
3-4-CFS Ed-RFD -Ed ~ output = RFD
24-4-PL Ed -RFG-Ed ~ output = RFG
246-4-AMEX Ed- AMEXI PL-Ed ~ output= AMEXI PL

Hi @Venkata_Swami
Try this regex:

(?<=Ed\s?-\s?).*(?=\-)

Hope it helps!!

Hi,

How about the following?

System.Text.RegularExpressions.Regex.Match(yourString,"(?<=-\s*)[^-]*?(?=-Ed)").Value

image

Regards,

1 Like

I will try and let you know both
@Parvathy @Yoichi

It’s worked thanks
@Yoichi

2 Likes

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