title: ZF2 form validation not working properly for email
body: <p>i have a input box with type="email" and validation it with zend validator </p>
  
  <pre><code>&lt;input type="email" name="email" &gt; email &lt;/input&gt;
  'email' =&gt; array(
                  'required' =&gt; true,
                  'validators' =&gt; array(
  
                      array(
                          'name' =&gt; 'Regex',
                          'options' =&gt; array(
                              'pattern'=&gt;'/^[a-zA-Z0-9.!#$%&amp;\'*+\/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/', 
                              'messages' =&gt; array(
                                  \Zend\Validator\Regex::NOT_MATCH=&gt;'Please fill correct email ',
                              )
                          ),
                          'break_chain_on_failure' =&gt; true
                      ),
  
                  ),
  </code></pre>
  
  <p>problem is if i use another array to check for </p>
  
  <blockquote>
    <p>IS_EMPTY</p>
  </blockquote>
  
  <p>zend regex again does not display the above error instead display default zend regex error and if i remove IS_EMPTY  then it works fine. regex error is</p>
  
  <pre><code> 1. input does not match to expression '/^[a-zA-Z0-9.!#$%&amp;\'*+\/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/'
  </code></pre>
  
  <p>EXACTLY NOT ABLE TO UNDERSTAND WHY THIS WORKS FINE WITHOUT EMPTY CHECK AND DOESN'T WORK ALONG WITH IT</p>