(Matches) Get the most matched value

Hello,

Im fairly new to the Matches activity with a IEnumerable Match variable as output.

Example:
Input: “test 1 example 1 2 test”
Match: “1 | 2”
Output gives a match variable looking something like (1,1,2)

Now I want to convert to most matched value (1) to a string variable. I dont really know how to do this easily.

Also, is there a way to check if there are values that matched the same amounts of time. for example if the match variable was (1,1,2,2)

I hope my question isn’t too vague, kind regards Peter

@Peter_Peter
the group by will help:

grafik

grafik

Result:
grafik

With this building Block (can also be adopted to create a result Datatable) the different key metrics can be retrieved e.g.

find starter help here:
Regex_GetMatchOccurences.xaml (6.1 KB)

ensure:
grafik