How to return only alpha bate string from an string str =
"bibhu@#$%&das&*)(SUndar"
Answer Posted / usha
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
msgbox t
Next
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How to create a cookie using vbscript?
Explain the constants in vbscript?
What is the difference between vbscript and vba?
i have a problem with this error(this error related edit and
delete button,when i click this button in datagrid..i will
get this error)"Invalid postback or callback argument.
Event validation is enabled using
How will you get the largest subscript of an array in vbscript?
We have 1 web page with names column. I am giving the Service Providers1,2,3.... @ that time dynamically some no of names are displaying in the webpage and The Pop up windows are opening(No.of Pop Up windows=No.of Names). The names may be diffar for each and every Service Provders (Dynamically) How can we handle the Dynamic values?
Explain the functionality of vbscript?
Which function is used in the vbscript language to convert the specified expression into a date type value?
What are keywords in the vbscript language?
Which object is used to work with the database in the vbscript language and what statement is used to create this object?
There are 5 web pages.write a script to click the button on 4th web page.
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)
Mention what is byref and byval parameters in vbscript?
Can any one provide code for Mid(string,start[,length]). I have been asked to write code for Mid(). i.e We need to define our own function say MyMid() which should behave same like built-in Mid function
Explain the scope of the variables using dim, public, and private keywords respectively.