
9 Apr
2005
9 Apr
'05
2:24 p.m.
On Mon, 4 Apr 2005 10:05:52 +0200, Detlef wrote
Hi,
we need to validate ISBN. With another REGEX-implementation we uses (?=.{13})\d{1,5}( |\-)\d{1,7}\1\d{1,6}\1(\d|X). But this seem not to work. Only the shorter version "\d{1,5}( |\\-)?\\d{1,7}\\1\\d{1,6}\\1(\d|X) " works, but how to check the 13 digits?
I didn't try to figure out why this isn't working, but you might have a look at the site below -- it has a few examples of regex'es for ISBN validation: http://regexlib.com/Search.aspx?k=ISBN HTH, Jeff