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 retrieve alpha bate from the alphanumeric string with
special character.

Answers were Sorted based on User's Feedback



How to retrieve alpha bate from the alphanumeric string with special character...

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

How to retrieve alpha bate from the alphanumeric string with special character...

Answer / audi7784

Str ="a0%n1@a2&n3)d4*h"
For intval=1 to Len(Str)
StrVal = Mid(Str,intval,1)
If isNumeric (StrVal) = True Then
StrNum = StrNum&StrVal
Else
StrChar = StrChar&StrVal
End If
Next
msgbox StrNum
msgbox StrChar

Is This Answer Correct ?    7 Yes 1 No

How to retrieve alpha bate from the alphanumeric string with special character...

Answer / nahush

str="Hello Uda543y %%^&"




Set objRegExp = new RegExp
objRegExp.pattern = "[a-z A-Z]"
objRegExp.global = true

Set matches = objRegExp.execute(str)
For each x in matches

result = result & x.value

Next


MsgBox result

Is This Answer Correct ?    1 Yes 0 No

How to retrieve alpha bate from the alphanumeric string with special character...

Answer / qtpbibhu@gmail.com

Str="BIBHU@#$%^^&*(sundar)(*&das" how to retrieve alpha
bates and how to retrieve special characters

Is This Answer Correct ?    0 Yes 0 No

How to retrieve alpha bate from the alphanumeric string with special character...

Answer / shekhar

a="she25bh3k"

set reg=new regexp
s1="[a-z]"

reg.pattern=s1
reg.ignorecase=true
reg.global=True

set matchs=reg.execute(a)

for each match in matchs

a= match.value
''msgbox b
str=str&a

Next
msgbox str

Is This Answer Correct ?    1 Yes 1 No

How to retrieve alpha bate from the alphanumeric string with special character...

Answer / dinesh rathod

The special characters I have chosen are just an example. Add your ... I am assuming that by "alphabet" you mean A-Z. .... Is it possible to get 0 by subtracting two unequal floating point numbers?

Is This Answer Correct ?    0 Yes 0 No

How to retrieve alpha bate from the alphanumeric string with special character...

Answer / nihar

str="BIBHU@#$%^^&*(sundar)(*&das"
set reg=new regexp
reg.global=true
reg.ignorecase=true
reg.pattern="[W]"
set x=reg.execute(str)
for each res in x
result=res.value&result
next
msgbox result

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More QTP Interview Questions

Name the properties you would use for identifying a browser and page when using descriptive programming?

0 Answers  


What is difference b/w AOM,DOM,COM Have u ever is used ny of the models.If so why?

1 Answers   GE,


how can we write descriptive programming for menus when qtp is not able to identify it..and how can we write descriptive programming for partially identified and non standard objects..do i have to map the objects before writing the script

2 Answers  


Sometimes my QTP scripts works fine and sometimes its not though I am using same shared Repository and am not doing any changes in it.Even though for descriptive programming also its works fine and sometimes it does not work.my application is pretty stable.Could anyone please answer why am facing these types of issue??

1 Answers  


How to get align property of the link on web page?

1 Answers  


How will we compare the texts in the two word files using QTP writing the script in Descriptive Programming. Thanks

0 Answers  


Write the regular expression code, it accepts the alpha, numeric and special symbol and the first character should be the Alphabet. Tell me the answer

3 Answers   IBM,


I Scheduled a QTP Script on remote desktop. Script is going to failure,when remote desktop connection fails.I have to open my remote desktop untile the scripts exection completes. If I disconnect my remote desktop connection, script is going to fail. Could you please any assist in this?

2 Answers  


what is framework? which frame work u follow for writting script?

5 Answers   IBM,


hi guys, pls tell me for testing institution training hub, hitech city is best or not?

0 Answers  


How to Save your test using QTP?

1 Answers  


How can i count the list box elements in QTP ?using script plz explain me (Chandana)

6 Answers   Wipro,


Categories