How to get Specific text from a string using Regex

Hello,
I want to get specific text from string with Regex from below string.
S S Z E S E N USD 2.643,00 0,00 2.643,00

From above string I just want 2.643,00.S S Z E S E N will fix but USD will not be fix, it may change as per request. So I am able to get USD now. Want to skip whichever is there need to skip and get the digits only.

Hey! @nilesh.mahajan ,

Try this :

System.Text.RegularExpressions.RegEx.Match(strInputVar,“(?<=[A-Za-z]{2,}\s)\d+.\d+.\d+”).ToString

Reference:-

Regards,
NaNi

HI @nilesh.mahajan

Checkout this expression

System.Text.RegularExpressions.Regex.Match(InputString,"(?s)(?<=S S Z E S E N\s[A-Z]{3}\s)(.*?)\d{2}\s").Tostring

Regards
Sudharsan

Hi @nilesh.mahajan

Try using the following regex expression:

[0-9]+.[0-9]+,[0-9]+\s

Hope it helps!!

Regards,

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