title: regex rule for email validation is not working in vuejs
body: <p>I tried this code as provided in <a href="https://v2.vuejs.org/v2/cookbook/form-validation.html" rel="nofollow noreferrer">https://v2.vuejs.org/v2/cookbook/form-validation.html</a>.</p>
  <pre><code>validEmail: function (email) {
      var re = /^(([^&lt;&gt;()\[\]\\.,;:\s@&quot;]+(\.[^&lt;&gt;()\[\]\\.,;:\s@&quot;]+)*)|(&quot;.+&quot;))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
      return re.test(email);
  }
  </code></pre>
  <p>Vuejs is saying that - <code>error: Unnecessary escape character: \[ (no-useless-escape) at src/components/form.vue:125:65</code> which is the line <code>var re = ...</code></p>
  <p>What I am getting wrong here? I called this function like <code>this.validEmail(this.modelname)</code></p>