Please let know the scripts for counting number of repeated
letters in the word. Note repeated letter should not be
count agian.

Ex: If "Hello" is my word... l is coming twice.. it should
count once and print... secong 'l' should not count again..

Answer Posted / sunil

A="Hello"
Set rxp = New RegExp
With rxp
.Global = True
.IgnoreCase = True
.Pattern ="l"
End With

Set colMatch = rxp.Execute(A)

msgbox colMatch.count

Is This Answer Correct ?    2 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

I want to grow as a Automation Engineer,Kindly help me in clearing my interview that what interviewer looks for as a Automation Engineer. I am having three years of experience in testing.

1807


How to use actions in qtp ?

759


What is test object model in quicktest professional?

813


On what document base Descriptive programming is written if build is not yet ready ?

1097


what is test scheduleling?

2238


How to use Environment parameterization? Explain with an example.

1703


give me the code to save all messages of inbox of gmail into a folder and notepad

1812


How to associate shared object repository to test in qtp?

714


If object is not recognized by qtp but the object is standard object what is your approach?

785


how to idetfy which test cases are automated?who will deside that plz tell me

1749


When ‘option explicit’ keyword is used in qtp?

957


What is qtpro?

805


can any one say that where we can download the QTP trail version ??????????

1534


In QTP can we feed the out of one browser(internet explorer) as an input to the another browser(mozilla firefox)? If yes explain how to do it with an example.

1742


What is a checkpoint? How many check points are there in qtp?

741