title: Email validation in React ant design form
body: <p>I am working with ant design in React.js. I'm trying to validate email with ant design rules. My regex does not work.</p>
  <pre><code>&lt;Form.Item&gt;
      {getFieldDecorator('email', {
          initialValue:null,
          rules: [
              {
                  required: false,
                  pattern: new RegExp(&quot;/\S+@\S+\.\S+/&quot;),
                  message:
                      'Enter a valid email address!',
              },
          ],
      })(
          &lt;Input
              className=&quot;form-control&quot;
              type=&quot;text&quot;
              placeholder=&quot;Email&quot;
          /&gt;,
      )}
  &lt;/Form.Item&gt;
  </code></pre>