Regular expressions |and -

Hi All,

I have an input as
09878|meta epo| this is test data for testing
Or
09878|meta epo- this is test data for testing
Or

Expected output is meta epo

Thanks in advance

Hi,

Do you wan to extract data between | and - ?

If so, the following will work.

System.Text.RegularExpressions.Regex.Match(yourString,"(?<=\|).*?(?=\||-)").Value

Regards,

Try like this as well

image

Regards,
Nived N

Thanks really it helps me

1 Like

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