Build, test, and debug regular expressions
This regular expression validates and parses 13-digit ISBN (ISBN-13) numbers in either a compact 13-digit format or a structured format using hyphens or spaces. It optionally matches a prefix like 'ISBN-13:' and breaks down the identifier into named groups such as GS1 prefix, registration group, registrant, publication, and check digit. It is ideal for data extraction in library systems, publishing, or e-commerce book catalogs.