how to calculate no. of repeating characters in a a
string..please give me the code

Answer Posted / lakshmi

Hi Rajeswari,

could u please tell us the total no.of repeating charcters
in a given string. it is not specific to one character.

For ex i have a string like "abcdabcefghefg".

so here the total no.of repeating char's are 6.

so for this sring output should be 6.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to write business scripts using object repository with different scenarios

1590


if there is a web table of having row and colmns.a button is placed at 2nd row's 3rd column which is worked for both edit and delete..how to write script for the button to test both operation on the web table using desriptive programing.. plz help me on script wheather using getroproperty Q2)what is the command for taking valiue from a web table in qtp

24712


How to get the format of a webedit class in qtp. How can i know that particular webedit accept what type of format like "mm/dd/yyyy" or "$" or Alphanumeric

1824


Which environments are supported by hp qtp?

750


How we can import data from database?

869


What are the advantages of a Hybrid framework?

803


What is the use of text output value in quicktest professional (qtp)?

779


how to compare two bitmaps( 1. clients requirement & 2. Designed by dev) in qtp 8.2 wann clear steps

1857


what is the mail use of frame work(with detail). architecture for keyword driven frame work

1600


hi can anybody help with an qtp 9.2 license key please. Thanks, Nitesh.

2094


explain how to write vb script in qtp?when will you write own script?

2051


Will down time for server and content maintenance/upgrades be allowed? how much?

818


what is profile tool?

1806


How can i use virtual objects? If have i created one new virtual object in a virtual object manager by following instructions.

1688


How to do the scripting. Is there any inbuilt functions in qtp as in qtp-s. What is the difference between them? How to handle script issues?

741