Boost logo

Boost :

From: Paul A Bristow (pbristow_at_[hidden])
Date: 2005-04-10 12:44:33


In case your next question is how to check the number of a credit card is
valid,
I doubt if you can do this with regex,

but I DO have some C++ code to check both ISBN and Credit cards,
and most other protocols of this type.

In fact I wonder if there is any interest in these as a Boost library?

Paul

Paul A Bristow
Prizet Farmhouse, Kendal, Cumbria UK LA8 8AB
+44 1539 561830 +44 7714 330204
mailto: pbristow_at_[hidden]

| -----Original Message-----
| From: boost-bounces_at_[hidden]
| [mailto:boost-bounces_at_[hidden]] On Behalf Of Jeff Garland
| Sent: 09 April 2005 15:24
| To: boost_at_[hidden]
| Subject: Re: [boost] Regex-User: ISBN validation
|
| 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
| _______________________________________________
| Unsubscribe & other changes:
| http://lists.boost.org/mailman/listinfo.cgi/boost
|


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk