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 purpose of drive object of scripting.filesystemobject class in vbscript?
Capture the Unique label changes on google home page for I am feeling lucky button and save those label changes to Notepad Note: Using QTP
Mention characteristics of sub procedures?
Explain about constants in vb script?
does anyone have qtp11.0 license key.Please sendit to my mail id-rrvv2011@gmail.com...Thanks
how to increasing the numbers in a given text box please write a vb script
How are arrays declared in the vbscript language?
Explain about tristate constants?
Mention the rules for using option explicit statement?
What is the difference between for loop and while loop?
How should i Create Email invite with server-side Coding?
How to open a file. What is the perpose of true and false mode there?
What if you do not specify anything when you call a procedure?
what do you mean .ota mobile format
How will you get the largest subscript of an array in vbscript?