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];
});
If you want a regular expression to be case-insensitive, add a
imodifier to the end of the regex. Like so: