how to find number of characters(letter a) in
the sentence
Rain Rain Go away

Answer Posted / usha

str="Rain Rain Go away"

set r = new regexp
r.ignorecase=true
r.global=true
r.pattern="[A]"


set p=r.execute(str)

msgbox p.count

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Mention how to assign a date value to a variable?

582


How to use QTP Object in .vbs(vbscript file) file Ex: Browser().., wait(), exist() and etc...

2897


What is variant in vb script?

619


What is Procedure or Subroutine in VB Script?

598


We have 1 web page with names column. I am giving the Service Providers1,2,3.... @ that time dynamically some no of names are displaying in the webpage and The Pop up windows are opening(No.of Pop Up windows=No.of Names). The names may be diffar for each and every Service Provders (Dynamically) How can we handle the Dynamic values?

1750






What is the difference between a dictionary and an array?

571


Explain the support of asp for vb script functionality?

631


What is the purpose of regexp object in vbscript?

549


How will you release the memory acquired by an array variable in vbscript?

738


Explain about the asc function?

597


What is the use of the recordset object and which statement is used to create such an object?

527


Write a vbscript procedure that converts feet to inches. Hint: there are 12 inches in a foot?

572


Explain about .wsf files?

614


What is difference between vbscript and vba?

602


hi what is called GUI in QTP 8.2 and how can we test the apllication using GUI?

1782