I need to be able to determine if a string matches a list of defined values.
Say I have a defined list of strings, e.g.
a | activ | blue | lagoon | ex (defind list is much longer and contains approx. 50+ possibilties)
I should be able to match any of the following;
a
a[name]
activ
activ[class=somevalue]
blue
lagoon[name=somevalue], ...e.t.c
is it possible via regex to determine if a string passed is contained in the defined list?
thanks...