title: dutch Bank account validation rule
body: <p>Can anybody advise me how to make a validation rule for Dutch bank accounts?</p>
  
  <p>So far i could only found this on web:</p>
  
  <pre><code>regex = /[0-9]{2}[\\s]{1}[0-9]{2}[\\s]{1}[0-9]{2}[\\s]{1}[0-9]{3}/;
  </code></pre>
  
  <p>This is my JavaScript:</p>
  
  <pre><code>function dutchBankAccount(input) {
  var regex = /[0-9]{2}[\\s]{1}[0-9]{2}[\\s]{1}[0-9]{2}[\\s]{1}[0-9]{3}/;
  if(input.value.toString().match(regex) &amp;&amp; !(input.value == "")) {
      return true;
  } else {
      input.click();
      input.style.border = '2px solid #F20056';
      return false;
  }
  
  }
  </code></pre>
  
  <p>And here is my HTML code:</p>
  
  <pre><code>&lt;li&gt;&lt;input type="text" id="anum" placeholder="Account Number" autocomplete="off" onkeypress="return isNumberKey(event)" onBlur="isValidAnum()" onFocus="emptyAnum('anum')"/&gt;&lt;/li&gt;
  </code></pre>
  
  <p>Later on when I enter a dutch bank account I get error which I'm not supposed to get. So if you know how to solve this please help me.</p>