How to return only alpha bate string from an string str =
"bibhu@#$%&das&*)(SUndar"

Answer Posted / usha

str="bibhu@#$%&das&*)(SUndar"

Set r = new regexp
r.pattern="[A-Z]"
r.global=true
r.ignorecase=true
Set a =r.execute(str)
msgbox a.count
For each t in a
msgbox t
Next

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Mention what is select case statement?

522


What are the uses of vb script?

561


wht must be the interview question on corinthian information technology solutions incorporated.

2162


how to write a vb script in QTP for yahoo registration form, i want to check the performance also like performance test, stress, load test like that.

4723


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

1769






Mention what is vbscript?

575


How to access array data?

522


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

547


Hai this is sheik, i want to learn VB scripts for web application pls guide me what are all basic things need to know to learn VB scripts in web application.

1407


What is the scope of a constant declared using public?

530


How to open excel in vb script?

545


Is vbscript language a case-sensitive language and what does it mean?

525


regular expression that will recognize a browser as long as its name property starts with mybrowser

1736


How do i automate a website www.flyashx.com without having any test cases witin a week time.

1430


i am having some basic knowledge in c and VB 6.0. i qtp i want to know how to write the codings. by recording it is generating lot of codings. for example i want to test the text box. senerio is text box should not accept alphabets if it accept alphabets we should return fail status if it get number we should return pass status. how to write coding in vb script please help me

1774