RegExLib.com - The first Regular Expression Library on the Web!

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find 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: Not yet rated. Santiago Neira
Source
Your Rating
Bad Good

Enter New Comment

Title
 
Name
 
Comment
 
Spammers suck - we apologize. Please enter the text shown below to enable your comment (not case sensitive - try as many times as you need to if the first ones are too hard):

Existing User Comments

Title: Cuts off last digit in 13 digit isbn containing 1 dash
Name: mv
Date: 8/1/2016 4:17:43 PM
Comment:
if you submit a 13 digit isbn with a dash in it like 978-0596514273, it only selects 978-059651427, leaving off the last digit.


Copyright © 2001-2018, RegexAdvice.com | ASP.NET Tutorials