Title |
Test
Find
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
|
Source |
Came up with it myself |
Your Rating |
|
Title: Works great
Name: Maschyth
Date: 10/25/2017 2:50:16 PM
Comment:
This is exactly what I needed. I work in books, and despite standards, people enter ISBNs in a variety of combinations of numbers and dashes. This captures them all. I simplified it for my needs as follows:
(([0-9Xx][-]*){13}|([0-9Xx][-]*){10})
Note: To "Regexp user" below. You can't validate an ISBN with regex. You need math.
Title: It doesn't work
Name: Regexp user
Date: 12/23/2016 2:15:58 PM
Comment:
This expression doesn't work. It matches valid ISBN numbers, but it also matches ANY string having AT LEAST 10 characters and an arbitrary number of dashes and spaces. Cannot be used to check for invalid ISBN numbers
Title: Er.
Name: Yamini Upadhyay
Date: 1/13/2016 3:58:22 AM
Comment:
This page is very helpful for me..