str="ramanareddy12345@gmail.com"to count alphabets,numarics and special charcters pls any one knows send to answer
Answer Posted / nitin sharma
Dim mystring
mystring = "ramanareddy12345@gmail.com"
stext = "12345"
mtext = "@"
X = split(mystring,"@")
Y = split(mystring,".")
'count character "@"
msgbox ubound(X)
'count character "."
msgbox ubound(Y)
ssearch = instr(1,mystring,stext)
msearch = instr(1,mystring,mtext)
Z = mid(mystring,ssearch,len(stext))
'count of numeric '12345'
If isnumeric(Z)=true Then
msgbox Len(Z)
End If
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Where to use Property Let, Property Get, Property Set in UFT
Where we can use the analog mode and where we can use the low – level mode?
Define object spy ?
Is it possible to call win runner script in qtp?
Is QTP supports Unix. If yes, then how the test automation is done?
Can anyone tell me how i used QTP 9.2 use for GIS based S/w with an example?
In an interview, what r the general questions asked in QTP? pls give me anwser to this question?
What is action? How many types of actions are there in qtp?
What are the different attribute used with regular expression?
is there any addin for remedy user application
I have many listboxes in my application. I have to check whether the contents inside the listboxes are in sorted order or not..can anyone please send the code as early as possible
can any body tell me how i create a simple script and apply output value on it .pls send me a step by step process
If you have two monitors one is of 19inch and the 2nd one is of 24inch,if you want to write same QTP script in both the two monitors is there any changes required in the script?
How to test login module with different username and password by using data driven testing in QTP?
hai, i completed my b.tech in 2010 with 62.3%. i having knowledge on manual testing and Qtp. i want Relavent experience in testing.watever may be d salary i dont bother..I just want to gain knowledge. i dont have good communication skills.