Question

i need to display letters if string contains more than one occurrence . Ex String is 464662352

  • 8 February 2022
  • 6 replies
  • 265 views

i need to display letters if string contains more than one occurrence . Ex String is 464662352

6 replies

o/p =4,6,2 because this are more than one occurrence

Userlevel 6
Badge +12

Hi @madhavarao cherukuri​ ,

 

What should be the output?

Hey @madhavarao cherukuri​,

The approach I would take for this is to loop through each character of the string and use the 'Find' action within the String package. If the 'Find' action finds more than one instance of the character then add it to an output list. Also add a check for duplicates in the output before adding to the output.

 

There are definitely improves that can be made but this was my first thought.

Userlevel 4
Badge +7

Hi @madhavarao cherukuri​ ,

 

Here is a short workflow I have developed that works:

 

image 

 

image 

Kind Regards,

Ashwin A.K

 

Thanks @Ashwin A.K​ 

Userlevel 4
Badge +7

Glad I could help!

 

I'd appreciate it if you marked my solution as "Best" so that others facing similar issues may benefit from it as well.

 

Kind Regards,

Ashwin A.K

Reply