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
What is the event handling in vbscript?
how to answer "TELL ME ABOUT UR SELF" as exp.person. whr to start and whr to stop. can anyone tel me
Explain about the asc function?
Can u describe what kind of testing are for OTC derivates by banks.
How to Import data from a file (file is on the desktop) to the data table
How to replace junk code recorded by QTP with a mall function.
How to create a function in vbscript?
can anyone send me a vb scripts code for clicking on a link and coming back on home page again does the same for many links on a web page.
What is vbscript?
Explain about scrrun.dll?
How will you compare two strings in vbscript?
Can we create Crystal Report object in QTP?If yes then what it is and what are its various properties?
Which date function is used in the vbscript language to find the difference between the 2 dates?
Explain about arrays in vb script?
What's the difference between vbscript and vb.net?