regex function 4 letters and 4 numbers?
<p>i dont understand how regex works so this may be is a simple question for many people, but for me is very important that a person can explain me with simple words how can i use this.</p>

<p>i need to validate in jquery adding a new function</p>

<pre><code>$.validator.addMethod("loginRegex",function(a,b){return this.optional(b)||/^[a-zA-Z\d]+$/.test(a)},"Solo se aceptan letras o numeros");
</code></pre>

<p>this function accept only letters and numbers, but if you put FH374HD3 the validate return me true, but i need to valid 4 letters and 4 numbers in that order, example: "ABCD4578", only letters and numbers but 4 letters first and 4 numbers at the end.</p>

<p>is that posible??? tnx all!</p>
