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 else for do while select in vb script?
How can you destroy an object in vbscript?
What are the valid scopes of a variable in vbscript?
How will you get the natural logarithm of the given number in vbscript?
Why is it recommended to close the database connection every time after the work is completed?
Set srchobj=Description.Create() srchobj("type").value="text" srchobj("name").value="q" srchobj("html tag").value="input" browser("micclass:=google").Page("micclass:=google").webedit (srchobj).Set "qtp" what's wrong in my code pls tell me ? the above code working fine and i got my result pass,now i am trying to run the program it shows general run time error why?pls help me i am in learning stage ?
Explain the tristate constants in vbscript?
Explain about scrrun.dll?
How can you create a file object to work with the files in the vbscript language?
What is variant in vb script?
How to pass argument by reference to a function in vbscript?
What is sql loader? Explain the files used by sql loader to load file?
How are values assigned to string type and numeric type variables?
Mention the rules for using option explicit statement?
Mention how you can call vbscript functions?