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]; });
/i?