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
If we take 2 strings as “good” and “bad” then what will ‘+’ and ‘&’ operators return?
How will you reverse a string in vbscript?
1.I want to establish connection with excel and also want to fetch the data using SQL queries. 2.the code should be written in such a way that in future if I want to migrate from excel to MS excess database , then there should be minimal changes.
wht must be the interview question on corinthian information technology solutions incorporated.
What are the disadvantages of vbscript?
In html file what is an ideal position to include vbscript?
How are arrays declared in the vbscript language?
Explain the string concatenation function in vbscript?
How to Import data from a file (file is on the desktop) to the data table
What is Procedure or Subroutine in VB Script?
Explain the operator precedence in vb script?
What is the extension of the vbscript file?
What are string functions in vbscript?
How to Convert Hex color code to color name in VB Script?
Which object is used to work with the database in the vbscript language and what statement is used to create this object?