title: Issue with Laravel Rules & Regex (OR) operator
body: <p>I'm having a small issue with my Laravel rules and regex operation :</p>
  
  <p>Basically a rule is an array as such :</p>
  
  <pre><code>'room'=&gt;'required|alpha_num|min:2|max:10',
  </code></pre>
  
  <p>The problem i'm having is when using regex and the | (or) operator such as :</p>
  
  <pre><code>'cid'=&gt;'required|regex:/^((comp)|(soen)|(engr)|(elec))\d{3}$/i',
  </code></pre>
  
  <p>I'm getting a server error saying : </p>
  
  <pre><code>ErrorException
  
  preg_match(): No ending delimiter '/' found
  </code></pre>
  
  <p>I'm guessing the <code>preg_match</code> is stopping at the first <code>|</code> inside the <code>/.../</code>.</p>
  
  <p>Is there anyway to write the above code to make it work ?</p>
  
  <p>Full code :</p>
  
  <pre><code>public static $rules = array(
  
  'cid' =&gt; array('required', 'regex:/^((comp)|(soen)|(engr)|(elec))\d{3}$/i'),
  
  'description'=&gt;'required|regex:/^[A-Za-z \t]*$/i|min:3|unique:courses',
  
  'credits'=&gt;'required|regex:/^\d+(\.\d)?$/'
  
  );
  </code></pre>