title: How to validate email in c#
body: <p>I am trying to validate email field. And I have a regular expression for email</p>
  
  <blockquote>
    <p>/^[a-z0-9._%+-]+@@[a-z0-9.-]+.[a-z]{2,4}$/</p>
  </blockquote>
  
  <p>In visual studio my code</p>
  
  <pre><code>  Email:&lt;br&gt;
          &lt;input type="text" ng-model="Email" id="txtEmail" ng-pattern="/^[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,4}$/" name="Email" placeholder="Email" required&gt;
          &lt;span ng-show="myForm.Email.$error.pattern"&gt;Please enter valid Email!&lt;/span&gt;
          &lt;span ng-show="myForm.Email.$error.required"&gt;*&lt;/span&gt;&lt;br&gt;
  </code></pre>
  
  <p>An error occuring
  <a href="https://i.stack.imgur.com/LV2Jf.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/LV2Jf.png" alt="enter image description here"></a></p>