Hi all,


2) how to eliminate special characters in a given string

if i have a100 lines script, How we can  know 50th  Line sscript is updated

Try this code

Set reg1=new regexp
str= "ahdv@sa/s-d126&sb_dhhsadhs%jdscnfjd!hs>sjdcjshd,jhdsjs.sdjs|sjds"
reg1.pattern="[a-zA-Z0-9]+"                         '  if you want only
special chr  use "[^a-zA-Z0-9]+"
reg1.global=true
reg1.ignorecase=true
Set colx =reg1.execute(str)
msgbox colx.count
For each col in colx
   print col.firstindex                    ' position of the special
character
   str1= str1+ col.value

Next

print str1


Regards

Tamil








print str1










On Fri, Aug 17, 2012 at 8:00 PM, Siva Prasad <[email protected]>wrote:

> Hi all,
>
>
>             I need answers
> 1) how to display pyramid numbers(1,2,3,4,5,6) in vb script
> 2) how to eliminate special characters in a given string
>
> if i have a100 lines script, How we can  know 50th  Line sscript is updated
>
>
> Please help me
>
>
> Thanks in advance
>
> --
> prasad kopparapu
> +91-9032114331
>
> --
> You received this message because you are subscribed to the Google
> "QTP - HP Quick Test Professional - Automated Software Testing"
> group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/MercuryQTP?hl=en
>

-- 
You received this message because you are subscribed to the Google
"QTP - HP Quick Test Professional - Automated Software Testing"
group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/MercuryQTP?hl=en

Reply via email to