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

How will you reverse a string in vbscript?

622


How to add actions in driver script to run those actions in QTP?

1522


Why to use option explicit in vb script?

602


Write a test case using Test if the images,a particular test exists,check if the page links match,page response is within a certain range,parameterization of the test,the test should comprise of actions,the test should use a custom function,the test should use global repository

1796


how to answer "TELL ME ABOUT UR SELF" as exp.person. whr to start and whr to stop. can anyone tel me

1344






what is the difference between modular and data and keyword driven framework

1747


What are the disadvantages of vbscript?

657


what is the features of visual basic?

1558


How strcomp function works?

630


In what way program "hello world" you can write in vbscript?

655


Anyone have qtp11.0 crack?

2391


How will you check that a variable is an array in vbscript?

548


Hi Friends Rajendra this is bhavani prasad, iam working Hyderabad. i faced one problem with qtp recording mode i.e in my application there is 100 records first we click the first record that record will be jumped to next session and 99 records will there stop the recording and run the same script .Run this script qtp does not identify the records. So plz tell me what is the solution.

1574


Mention what is the difference between vbscript and vba?

527


What is the difference between VBScript and JavaScript?

2073