Hi...
Can anybody help me to write the vbscript for this
question..!!! Am having a string "HELLO WORLD", i want to
find how many "L"s are there.....?????

--> HANEEF <--

Answer Posted / ashok kumar

str = "HELLO WORLD"
Set regex = New RegExp
regex.pattern = "L"
regex.Global = True
Set matches = regex.Execute(str)
msgbox matches.count

Is This Answer Correct ?    10 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is Associate Repository in QTP 9.2 ?

607


What is the default add-ins in qtp?

561


Hi am New to Automation Testing , any one can you help me what are the basic questiion are asked an interview?

1428


when u script reveiwing in which area u more concentrates?

1422


What is the difference between qtp and selenium?

554






how can i pass a "automation script" as a parameter in a function give me need full suggestion thank inadvance

1430


How does you test a weblink which is changing dynamically?

560


breef description of batch testing ?

1713


what you mean by artifact,milestone...

1505


what is the diffrence bw qtp architectute and qtp framework?

1548


Explain the concept of object repository and how QTP recognizes objects?

555


What is the parameterization? Give one example?

598


How to record a qtp script ?

566


what and how to answer for the question "tell me about yourself ?" for 3 years experience. can anyone say inj detail please... its urgent

1343


Where you get the run time data table?

589