Skip to main content
Cadet | Tier 2
August 31, 2023
Question

string count

  • August 31, 2023
  • 2 replies
  • 857 views

Hi, 

 

I am new to Automation Anywhere and trying to learn things. When I use the String: Find package on the below string to find number of times “ ; “ occurs

;100;1,000;10,000;1,00,000;10,00,000
 

I get output as 1 when I give the ‘Start from (optional)’ field as 1, but I get output as 5 when I give ‘Start from (optional) field as 2. Any idea why this behavior? Shouldn't the count remain same as it only finds the number of occurrences of a character in a given string? 

 

I have attached the screenshot for reference

 

Regards,

Bala

2 replies

Navigator | Tier 3
August 31, 2023

It’s not returning count but the position of found string.

Tamil Arasu10
Most Valuable Pathfinder
Most Valuable Pathfinder
September 1, 2023

Hi @Balasamaran 

Please refer the below link.

Find how many times a character is repeated in a string in A360

_Tamil_