Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

If else for do while select in vb script?

1135


How can you destroy an object in vbscript?

1097


What are the valid scopes of a variable in vbscript?

1085


How will you get the natural logarithm of the given number in vbscript?

1027


Why is it recommended to close the database connection every time after the work is completed?

912


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 ?

1914


Explain the tristate constants in vbscript?

1004


Explain about scrrun.dll?

943


How can you create a file object to work with the files in the vbscript language?

934


What is variant in vb script?

1132


How to pass argument by reference to a function in vbscript?

1034


What is sql loader? Explain the files used by sql loader to load file?

1142


How are values assigned to string type and numeric type variables?

979


Mention the rules for using option explicit statement?

975


Mention how you can call vbscript functions?

1109