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

Answer Posted / indrani

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
s1=s1+t
Next
msgbox s1

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the advantages of vbscript?

628


How can you destroy an object in vbscript?

629


Explain about arrays in vb script?

592


What is vbscript?

583


How to find the font in qtp. Scenario:After entering the username and passwd you will be navigate into the "welcome:Username" page.Now I want to extarct font for this message.

1731






Explain different types of segment?

553


What are the environments supported by vbscript language?

491


Description.Create

2154


Explain the scope of the variables using dim, public, and private keywords respectively.

708


Which respective symbols are used to separate a line and to break the lengthy statement into multiple statements in the vbscript language?

785


about vb scripting programs this type of all question& answers

1684


Hi anyone Can Send Solution to the Question wt m posting now Prepare Script for the Bellow Scenario? Login to Gmail Page Open Inbox check Mails save them in a Folder

1553


Mention what are the rules to name variable in vbscript?

528


What is the difference between a dictionary and an array?

565


How will you format a number in percetage format in vbscript?

579