How to get 1st match from Regex

Hello,
Can someone please help me to get 1st Match from Regex pattern.
I have below string from which I want to get 1st Match. EUR
image

Összesen (EUR) 493,75 0,00 493,75
Összesen (HUF) 195.337 0 195.337

I am trying with Below pattern which highlighted both.
(?<=Összesen\s[(])\w*
image

Hi @nilesh.mahajan ,

Could you just check if you get the expected output with the below Expression:

System.Text.RegularExpressions.Regex.Match(YourInputString,"(?<=Összesen\s[(])\w*").Value

Hi @nilesh.mahajan

Try this
image

I hope it helps!!

Hi @nilesh.mahajan

If you want only the first match ,Store the result in

Or else you can store it the result as below
And use for each

Hi

Thanks to all for reply. got correct output with Pattern.
(?<=Összesen\s[(])\w*\b

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