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

How to assign a date value to a variable?

585


What is select case statement?

589


filter the array values without using filter function?

1646


Explain the adodb.stream class?

539


What is vbscript procedures?

592






Explain the functionality of vbscript?

527


Does VB/Win make standalone .EXE files?

2889


write a function to read the items from combobox of Flight reservation & save in excel (QTP)??

2385


Which operator can be used to do an xor operation in vbscript?

672


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

2893


Explain about arrays in vb script?

596


How to Import data from a file (file is on the desktop) to the data table

1547


How to delete a cookie using vbscript?

541


Which date function is used in the vbscript language to find the difference between the 2 dates?

583


What are string functions in vbscript?

642