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
Explain few date functions in vbscript?
Explain the adodb.stream class?
How will you reverse a string in vbscript?
How to create a cookie using vbscript?
what is the difference between modular and data and keyword driven framework
Write a Program to add 2 numbers without using operators (+,-) and without using third variable. Note: Use VBScript only Hint: You can use other operators like '/' & '*'(Division & Multiplication)
How to capture a runtime error in vbscript?
who will create the object?
Mention the rules for using option explicit statement?
write a function to read the items from combobox of Flight reservation & save in excel (QTP)??
how to acces the remote mechine using vb cript(QTP)
How to access array data?
Anyone have qtp11.0 crack?
There are 5 web pages.write a script to click the button on 4th web page.
How to identify column in VSFlexgrid? My VSFlexgrid window is identified as 'Active X Control'