the user makes a selection and I want to test if the selection is valid. So e.g.
preg_match("/(test1/test2|test3)/", $value)
The problem is that one value is test1/test2, but each test is treated as a single value. Any idea how to change that to have test1/test2 as a single value?
Eg:
test1/test2,
test3
Do you really need a regex here? How about:
That seems less intensive, but functional.