Displaying page
of
pages;
Items to
Title |
Test
Details
Pattern Title
|
Expression |
^\d{9}[\d|X]$ |
Description |
A very simple ISBN validation expression - it just checks for a 10 digit number where the last digit could also be a capital 'X'. Complete specs for ISBN available here:
http://www.isbn.org/standards/home/isbn/international/html/usm4.htm. An enhancement would be to allow exactly 3 or 0 hyphens or 3 or 0 spaces, since these are also valid formats. |
Matches |
1234123412 | 123412341X |
Non-Matches |
not an isbn |
Author |
Rating:
Not yet rated.
Steven Smith
|
Title |
Test
Details
ISBN-10
|
Expression |
ISBN\x20(?=.{13}$)\d{1,5}([- ])\d{1,7}\1\d{1,6}\1(\d|X)$ |
Description |
This RE validates the format of an ISBN number |
Matches |
ISBN 0 93028 923 4 | ISBN 1-56389-668-0 | ISBN 1-56389-016-X |
Non-Matches |
123456789X | ISBN 9-87654321-2 | ISBN 123 456-789X |
Author |
Rating:
Not yet rated.
Michael Ash
|
Title |
Test
Details
Pattern Title
|
Expression |
^ISBN\s(?=[-0-9xX ]{13}$)(?:[0-9]+[- ]){3}[0-9]*[xX0-9]$ |
Description |
This pattern validates ISBN numbers. I've written a full description about it here: http://regexblogs.com/dneimke/posts/201.aspx |
Matches |
ISBN 90-70002-34-5 | ISBN 90-70002-34-x |
Non-Matches |
ISBN 90-70002-34-5x | ISBN 90-700-02-34-5 |
Author |
Rating:
Not yet rated.
Darren Neimke
|
Title |
Test
Details
ISBN 10 or 13
|
Expression |
^(97(8|9))?\d{9}(\d|X)$ |
Description |
Validates both ISBN 10 and ISBN 13 numbers, and confirms ISBN 13 numbers start with only 978 or 979. |
Matches |
0672317249 | 9780672317248 |
Non-Matches |
0-672-31724-9 | 5555555555555 |
Author |
Rating:
Michael Fienen
|
Title |
Test
Details
ISBN Checker
|
Expression |
^[ISBN]{4}[ ]{0,1}[0-9]{1}[-]{1}[0-9]{3}[-]{1}[0-9]{5}[-]{1}[0-9]{0,1}$ |
Description |
Expression to check for a valid ISBN number |
Matches |
ISBN 0-596-00681-0 |
Non-Matches |
Anything that's not in the above format |
Author |
Rating:
Alex Richards
|
Title |
Test
Details
ISBNs
|
Expression |
ISBN(-1(?:(0)|3))?:?\x20+(?(1)(?(2)(?:(?=.{13}$)\d{1,5}([ -])\d{1,7}\3\d{1,6}\3(?:\d|x)$)|(?:(?=.{17}$)97(?:8|9)([ -])\d{1,5}\4\d{1,7}\4\d{1,6}\4\d$))|(?(.{13}$)(?:\d{1,5}([ -])\d{1,7}\5\d{1,6}\5(?:\d|x)$)|(?:(?=.{17}$)97(?:8|9)([ -])\d{1,5}\6\d{1,7}\6\d{1,6}\6\d$))) |
Description |
This regex match both the old 10 digit ISBNs and the new 13 digit ISBNs. The ISBN number must be prefixed by the literal text "ISBN:" or "ISBN-10:" or "ISBN-13:". The colon is optional. Naturally an ISBN prefixed by "ISBN-10" must be a 10 digit ISBN. One prefixed by "ISBN-13" must be 13 digits. If prefixed only by "ISBN:" it can be either 10 or 13 digits. This does not evaluate whether the check digit is valid for the given ISBN. The structure of an ISBN is discribed here http://www.isbn.org/standards/home/isbn/international/html/usm4.htm (this is for 10 digit) |
Matches |
ISBN-13: 978-1-4028-9462-6 |
Non-Matches |
ISBN: 1284233-2-1-1 |
Author |
Rating:
Not yet rated.
Michael Ash
|
Title |
Test
Details
ISBN-13
|
Expression |
ISBN(?:-13)?:?\x20*(?=.{17}$)97(?:8|9)([ -])\d{1,5}\1\d{1,7}\1\d{1,6}\1\d$ |
Description |
This regex matches the new 13 digit ISBN. The ISBN number must be preceded by the text "ISBN:" or "ISBN-13:" , the colon is optional. The proper lengthes of the ISBN elements is checked. The is no check for the validity of the check digit. |
Matches |
ISBN-13: 978-1-4028-9462-6 |
Non-Matches |
ISBN-10: 1-4028-9462-7 |
Author |
Rating:
Not yet rated.
Michael Ash
|
Title |
Test
Details
ISBN-10 and ISBN-13
|
Expression |
ISBN(-1(?:(0)|3))?:?\x20(\s)*[0-9]+[- ][0-9]+[- ][0-9]+[- ][0-9]*[- ]*[xX0-9] |
Description |
To find ISBN-10 or ISBN-13 text |
Matches |
ISBN-13 978-3-642-11746-6 SomeText | ISBN 978-3-642-11746-6 | ISBN-10 3-642-11746-5 SomeText | ISBN 3-642-11746-5 | ISBN: 978-3-642-11746-6 |
Non-Matches |
ISBN : 978-3-642-11746-6 | ISBN-10 : 3-642-11746-5 | ISBN-13 : 978-3-642-11746-6 |
Author |
Rating:
Muhammad
|
Title |
Test
Details
ISBN
|
Expression |
/((978[\--– ])?[0-9][0-9\--– ]{10}[\--– ][0-9xX])|((978)?[0-9]{9}[0-9Xx])/ |
Description |
match isbn 10 and 13
|
Matches |
978-1-4302-1998-9 | 1–931836–59–0 | 1593270127 | 0 321 15420 7 | 978-0-07-162612-5 |
Non-Matches |
978-0-07-1626125 | 15932701X7 | 970-0-596-52678-8 |
Author |
Rating:
Santiago Neira
|
Title |
Test
Details
ISBN10 / 13
|
Expression |
(ISBN[-]*(1[03])*[ ]*(: ){0,1})*(([0-9Xx][- ]*){13}|([0-9Xx][- ]*){10}) |
Description |
Matches isbn10 or isbn13 |
Matches |
1234123412 | 123412341X | ISBN 0 93028 923 4 | ISBN 1-56389-668-0 | ISBN 1-56389-016-X | 123456789X | ISBN 9-87654321-2 | ISBN 123 456-789X | ISBN 90-70002-34-5 | ISBN 90-70002-34-x | ISBN 90-70002-34-5x | ISBN 90-700-02-34-5 | 0672317249 | 9780672317248 | 0-672-31724-9 | 5555555555555 | ISBN 0-596-00681-0 | ISBN-13: 978-1-4028-9462-6 | ISBN: 1284233-2-1-1 | ISBN-13: 978-1-4028-9462-6 | ISBN-10: 1-4028-9462-7 | ISBN-13 978-3-642-11746-6 SomeText | ISBN 978-3-642-11746-6 | ISBN-10 3-642-11746-5 SomeText | ISBN 3-642-11746-5 | ISBN: 978-3-642-11746-6 | ISBN : 978-3-642-11746-6 | ISBN-10 : 3-642- |
Non-Matches |
Haven't tested this part |
Author |
Rating:
Churk
|
Title |
Test
Details
ISBN 13
|
Expression |
[0-9]*[-| ][0-9]*[-| ][0-9]*[-| ][0-9]*[-| ][0-9]* |
Description |
Pattern for ISBN 13 |
Matches |
978-1-86197-876-9 | 978 1 86197 876 9 |
Non-Matches |
no isbn number |
Author |
Rating:
Carlos Celis
|
Displaying page
of
pages;
Items to