I have one .dat file in which there are different duplicate numbers.i want only distinct numbers if values are repeating then print the duplicate with s.no which is in ist column of a file.how to do it in UiPath
How you are reading the data and in which type of variable? is it DataTable?
Thanks,
Ashok
i am reading data through read text file activity.it is string type
TIA
You can retrieve numbers from string using Regex. Once you have all the numbers, you can put them in array and get distinct from it.
Thanks,
Ashok
how to do it? Could you pls help me to do it
Share the sample string how it looks.
I want only distinct value to execute and if their is duplicate value then it will print the duplicate value in that column.
TIA
Sample output what you are expecting? and input in plain string here please to copy
Here is sample solution
Output:
Sample Code:
Text Demo.xaml (15.5 KB)
You are free to customize it as per your need.
Thanks,
Ashok
what is intIndex=0?
Thanks
It’s iteration index number of the all matching rows of the table for marking first number as processed