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 event handling in vbscript?
Mention what is byref and byval parameters in vbscript?
Is VB Script Case sensitive or Case insensitive?
What is the difference between function and procedure?
hi Set myobj=Description.Create() myobj("type").value="submit" myobj("name").value="google search" myobj("html tag").value="button" browser("title:=google").page("title:=google").webButton (myobj).Click i was running above code in one weak back it was working fine i got result,again i opened after few days ,again i was trying to run the code it shows run time error in last line of my code ,why ?pls answer my question?
can anyone tell me the procedure of interview held in applabs
Mention what is the technology used by vb script?
How to capture a runtime error in vbscript?
What are the data types supported by vbscript?
What is the difference between javascript and vbscript?
hi all, i had a question, that how to find out hiding a coloumn in a table i had a table having the following column names NAME DESCRIPTION CREATED TIME CREATED USER if i right clicked on a NAME column it will displays a menu having the same column names in a list like NAME DESCRIPTION CREATED TIME CREATED USER with check boxes.if i unched any check box, that column name should not be appear in the main table column names could anyone please solve this problem?
How regexp.execute method works?
Difference between dim,public and private variables in vb script?
What is the purpose of the err object in the vbscript language?
Which respective symbols are used to separate a line and to break the lengthy statement into multiple statements in the vbscript language?