Test, validate and match regular expressions
This regex parses GS1 barcode data strings to extract a 14-digit Global Trade Item Number (GTIN), a numeric serial number, a 6-digit expiration date (YYMMDD), and an alphanumeric lot number. Utilizing named capture groups corresponding to standard GS1 Application Identifiers (01, 21, 17, 10), it isolates critical product tracking information. It is highly effective for inventory management, pharmaceutical track-and-trace systems, and global logistics processing.