TESTEVERYTHING

Wednesday 16 May 2012

String Reverse in VB Script Without using any function

Dim yourstr,r,letter,result
yourstr="pro1gr3a6m"

Set r=new regexp
r.pattern="[a-z 0-9 A-Z]"
r.global=true
set s=r.execute(yourstr)

For each letter in s
result= letter.value&result
Next

print result

1 comment:

yugandhar said...

thanks for your code,
can you pls explain the above code how it will work

Post a Comment

Which one is right ?

Translate







Tweet