How to display the number of characters repeated in a string uipath


i have string like “indiauintedstatesofamerica” i want to display like how many times each character is repeated in the given string

Example i=4times
n=2 times


You can use Matches Activity and pass the pattern which you are looking for and you’ll get the output in list, you can count them

how use match activity

1 Like

you can do something like that:

and matches properties:

1 Like

Thank you @pikorpa

1 Like

Thank you very much ,it worked

I made the workflow where you can add all values to the dictionary. All repeated values are skipped.
Please remember install package: Microsoft.Activities.Extension
BlankProcess3.7z (36.3 KB)