Corrects range of regexp in barcode checking