How to extract 2,154,453 or 22,45,415 these kind of numbers

How to extract 2,154,453 or 22,45,415 these kind of numbers.

@saikumar17
Welcome to the forum.

Your request is unclear related to extracted from what.

Have a look here:
Parsing into a number
grafik

Extraction from a string with the help of regex
grafik

1 Like

Hi

Welcome to uipath forum

May I know from you want to extract these texts

@saikumar17

from paragraphs all numeric values and decimal values and I want know the count of the data from which we extracted.

1 Like

grafik

1 Like

Fine

Let’s take like you have the string in a variable named Strinput

Then use a assign activity like this

This str_matches will have all the matches found with numerical and decimal values

Where str_matches is a variable of type

System.Generic.Collections.List(system.Text.RegularExpressions.Regex.Match)

To Know this count

Use a assign activity like this

count_matches = System.Text.RegularExpressions.Regex.Matches(Strinput.ToString, β€œ(\d|,|.)”).Count

Where count_matches is a variable of type int32

Cheers @saikumar17

1 Like

Thanks for the help.

1 Like

Fine

Is there any further queries on this topic
@saikumar17