Build, test, and debug regular expressions
This regular expression matches both 10-digit ISBN strings with or without hyphens or spaces. It supports an optional "ISBN" or "ISBN-10" prefix and validates the overall length and format. The pattern captures specific parts of the hyphenated ISBN, including the registration group, registrant, publication, and the final check digit (which can be a number or 'X'). It is highly useful for validating and parsing book identifiers in JavaScript applications.