How to print alphabets alone from alphanumeric string?



str="Hello Madh543yavi %%^&"

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

Comments

Popular posts from this blog

Is QA a easy job?

Latest Version of TestComplete

Successful tester