On Sat, Oct 22, 2011 at 12:09 AM, Jonathan Rochkind <[email protected]> wrote:
> If you're in ruby, I prefer this gem, which can check ISBN check digit as > well as convert from 10 to 13. > > https://github.com/entangledstate/isbn Good to find another isbn validator. I use: http://isbn-tools.rubyforge.org/ Not sure why there's two nearly identical gems, exactly. -Ross. > ________________________________________ > From: Code for Libraries [[email protected]] on behalf of Dan Scott > [[email protected]] > Sent: Friday, October 21, 2011 3:40 PM > To: [email protected] > Subject: Re: [CODE4LIB] ISBN Regular Expression > > On Oct 21, 2011 2:03 PM, "Kozlowski,Brendon" <[email protected]> wrote: >> >> Oh man. I can't believe I didn't think to check Drupal...or GitHub. Thank > you both! The Ruby version is super simple, but I believe for my purposes > (coverted to PHP anyway) it should suffice. The Drupal module's version also > seems to go the route of simple as opposed to exact matching. > > Mmm, for PHP, the PEAR Validate_ISPN package > http://pear.php.net/package/Validate_ISPN/ might be an option. >
