Link to home
Start Free TrialLog in
Avatar of a0k0a7
a0k0a7Flag for United States of America

asked on

array with regular expression to compare againts a variable

I need help with a vbScript application I am working on...I want to find the best way I can create an array and used to check if my variable contains any of the elements in the array.

I just want to check if the variable contains any of the following characters:
( ) _   - + ? ¿

 
SOLUTION
Avatar of nds_rahulmistry
nds_rahulmistry

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of a0k0a7

ASKER

is there's way I can hold all the characters to look for in a single array...

myArray =  {"(", ")", "_", " " }

Avatar of a0k0a7

ASKER

thx psychic_zero, i will try that one
Avatar of a0k0a7

ASKER

nds_rahulmistry, psychic_zero... thanks for your help