How to return only alpha bate string from an string str =
"bibhu@#$%&das&*)(SUndar"




Answers were Sorted based on User's Feedback



Answer / satishraja

str ="bibhu@#$%&das&*)(SUndar"
L=len(str)
For i=1 to l
x=left((right(str,l-i+1)),1)
If ASC(ucase(x))>=65 and ASC(ucase(x))<=90 then
Print x
End If
Next

Is This Answer Correct ?    0 Yes 0 No

Answer / 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

Answer / pankaja yathindrakumar

'How to return only alphabate string from an string str = "bibhu@#$%&das&*)(SUndar"

str="bibhu@#$%&das&*)(SUndar"
for i=1 to len(str)
x=mid(str,i,1)
if Asc(x)>=Asc("A") And Asc(x)<=Asc("z") then
t=t&x
End If
Next
Msgbox t

Is This Answer Correct ?    0 Yes 0 No




Answer / 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





More VB Script Interview Questions

how to increasing the numbers in a given text box please write a vb script

0 Answers  


regular expression that will recognize a browser as long as its name property starts with mybrowser

0 Answers   Banking,


What variable can you use to share info across the whole application for one user?

2 Answers  


How to get the background color of a weblist?

3 Answers   Accenture,


write a vb script to display first 5 odd numbers from 1 to 100

4 Answers  






what is diff between static and dynaic arrys?

0 Answers  


what is the code in QTP to take screen shot? Please send me any one to my mail id. my mailid is manu.sanepalli@gmail.com

4 Answers   TCS,


accept a string & display whether a is present or not

1 Answers  


How to map test cases with Automation script? Please explain in details.With example Thanks for your co-operation(In Advance)

1 Answers   Google, IBM,


print the array values in ascending order?

2 Answers   CSS Corp,


what is used of Property........End Property loop ? how to write the script for it?

0 Answers  


best training centre in bangalore

2 Answers  






Categories