How to get specific text set from string using Regex

Hello,

I want to get amount from text file using regex. Can anyone please help.

Below is the screenshot of text file and from that I want 908,50 (highlighted)

image

I would be helpfull if you upload the text file

cheers

Hi @nilesh.mahajan

Please write the Get text into text file then use regex

PDF output - Copy.txt (3.2 KB)

HI @nilesh.mahajan

How about this expression?

System.Text.RegularExpressions.Regex.Match(YourString,"(?<=EUR\s+)[\d.,]+").Tostring

Regards
Gokul

@nilesh.mahajan

System.Text.RegularExpressions.Regex.Match(YourString,"(?<=EUR\s+)\d+\,\d+").Tostring


Hope it would be help full

cherrs

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