Skip to main content
Question

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

  • February 8, 2022
  • 6 replies
  • 504 views

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

6 replies

  • Author
  • Cadet | Tier 2
  • 2 replies
  • February 8, 2022

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


Forum|alt.badge.img+19
  • Most Valuable Pathfinder
  • 2694 replies
  • February 8, 2022

Hi @madhavarao cherukuri​ ,

 

What should be the output?


  • Cadet | Tier 2
  • 2 replies
  • February 8, 2022

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.


Ashwin A.K
Forum|alt.badge.img+8
  • Navigator | Tier 3
  • 2445 replies
  • February 9, 2022

Hi @madhavarao cherukuri​ ,

 

Here is a short workflow I have developed that works:

 

image 

 

image 

Kind Regards,

Ashwin A.K

 


  • Author
  • Cadet | Tier 2
  • 2 replies
  • February 9, 2022

Thanks @Ashwin A.K​ 


Ashwin A.K
Forum|alt.badge.img+8
  • Navigator | Tier 3
  • 2445 replies
  • February 9, 2022

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


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings