Hi team,
we have two kinds of Barcodes that need to get recognized for a specific workflow: the barcode always starts with the year (2 digits), the letter K or T, and a consecutive number from 0001-9999 (always 4 digits). The second case is all the former but with the character A added at the end. A match would look like: 22K0001 or 22K0001A
To avoid any kind of problems with preapplied barcodes from external sources i would like to use a regular expression to only allow the workflow to continue, when it matches for my barcode.
Would that be the correct way to approach our usecase?
This is my regular expression: ([0-9]{2})(K|T)([0-9]{4})|([0-9]{2})(K|T)([0-9]{4}A)
Best regards,
Andre