How Extract the diguts Using Regex

10 ABC
2.080,36 AND saa
20 XYSU
eddfdsfds sadsa dsadsa 12,234.09 SSSDC

30 ASDF

40 ASDSD

I need
10,20,30,40

How to extract

Hi,

Can you try the following expression?

System.Text.RegularExpressions.Regex.Matches(yourString,"^\d+(?=\s)",System.Text.RegularExpressions.RegexOptions.Multiline)

Regards,

1 Like

Hi @copy_writes
you can try this too

outputs = System.Text.RegularExpressions.Regex.Matches(yourString,"^\d{2}\s",System.Text.RegularExpressions.RegexOptions.Multiline)

Regards,
Nived N
Happy Automation

1 Like