Data Extraction using Regex (specific value)

Hi Everyone,

I need to extract the value “301.00” where CBM is the constant text

CBM
2 BMW SERVICE PARTS 301.00 8.170

Kindly, help me to extract the specific value.

regex101: build, test, and debug regex

Thanks in advance

have a try with:
grafik
with reference to group
grafik

Hi,

Another solution:

Can you try the following expression?

 System.Text.RegularExpressions.Regex.Match(yourString,"(?<=CBM.*\r?\n.*?)\d+\.\d+").Value

Note: this pattern is for .net regex. it won’t work in regex101.

Regards,

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