How to retrieve alpha bate from the alphanumeric string with
special character.
Answer Posted / uday
If you are looking to retrieve only alphabet string from the
input, use below code:
str="BIBHU@#$%^^&*(sundar)(*&das"
Set r=new regexp
r.pattern="[a-z A-Z]"
r.global=true
set s=r.execute(str)
'For each letter in s
'result= letter.value&result
'Next
For i=s.count -1 to 0 step -1
Set oVal=s.item(i)
result=oVal.value&result
next
print result
To retrieve only special characters from the input use the
below regular expressions in the above code:
r.pattern="[^a-z A-Z]"
r.pattern="\W"
Thanks,
Uday
http://qtpftvideos.blogspot.com/
| Is This Answer Correct ? | 8 Yes | 2 No |
Post New Answer View All Answers
we add library file used in test via settings or through "ExecuteFile" command. when we implement framework do we make common library file and load the same for all the test cases execution?
How many ways we can parameterize data in quicktest professional (qtp)?
What is the difference between rational rose and QTP?
which type of testing process are you following in ur company? how to recognize a qtp page?
Hi ,Can any one pleas explain how to test splash objects using QTP?
How to attach a file to TD?
what could go wrong with test automation?
How do you convert manual test cases to automated test cases?
Have you done batch testing in qtp? If yes how you are doing?
What is the extension of the qtp local repository?
Create flight reservation login descriptive programing (Condition: Remove the value and substitute with a variable, and then call the validation from Excel) Plz help me....... very urgent.........
in qtp if we record a object and we record the object using virtual wizard then by which way the object is recognized that means recorded
How to handle Java tree in QTP?
how to write xml output check point bu useing descriptive programing .means without useing output check point
hi i have completed my b.tech in cse stream. now i am working in an organisation in testing department. i want do sap course but i dnt know which module will boost my career can anyone suggest me which is good for my career