title: phone number regex in asp.net is working correct and display error massage even if the phone number is correct
body: <pre><code>function regex() {
    var regex = new RegExp(/^(009665|9665|\+9665|05|5)(5|0|3|6|4|9|1|8|7)([0-9]{7})$/);
    regex.test('0501234567'); // return true;
    regex.test('0521234567'); // return false; 
  }
  regex()
  </code></pre>
  <p>i put it the above code in a javascript file and attached it to the asp.net file</p>
  <p>and this is my code in asp.net file :</p>
  
    
    
  
  <p>what is the problem with my code? please help me ?</p>