Regular Expressions 101

Community Patterns

0

IE

PCRE (PHP <7.3)
no description available
Submitted by anonymous - 3 years ago

ISBN-10

1

Regular Expression
ECMAScript (JavaScript)

/
^(?:ISBN(?:-10)?:? )?(?:(?<number>\d{9})|(?=[\dX -]{13}$)(?<registrationGroup>\d{1,5})[ -](?<registrant>\d{1,7})[ -](?<publication>\d{1,6})[ -])(?<checkDigit>[\dX])$
/
gm

Description

Loading markdown...
Submitted by Alejandro - a year ago