Boost logo

Boost :

From: Jeff Garland (jeff_at_[hidden])
Date: 2005-04-09 09:24:24

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:



Boost list run by bdawes at, gregod at, cpdaniel at, john at