120
rated 0 times
[
127]
[
7]
/ answers: 1 / hits: 106295
/ 13 Years ago, wed, september 14, 2011, 12:00:00
I don't really know much about regex at all, but if someone could help me change the following code to also allow for lowercase a-z, that would be great!
$(input.code).keyup(function(){
this.value = this.value.match(/[A-Z]{3}([0-9]{1,4})?|[A-Z]{1,3}/)[0];
});
More From » regex