Using the Laravel framework I need to check the value of a submitted field against a set of valid values.
The problem is Laravel uses the | character to separate val
After using array() ,regular expression pattern needs to be enclosed in /.../ to avoid preg_match(): Unknown modifier '|' error