Question

string count

  • 31 August 2023
  • 2 replies
  • 336 views

Badge +2

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

Userlevel 3
Badge +6

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

Userlevel 6
Badge +15

Hi @Balasamaran 

Please refer the below link.

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

Reply