【发布时间】:2013-01-03 09:15:11
【问题描述】:
我有几个用于匹配 ISBN 10 的 PHP 正则表达式,但我找不到与 MySQL 的 REGEXP 兼容的一个,有人可以帮我在 MySQL 中匹配 ISBN 10 吗?
我已经尝试过这个(在 PHP 中有效,但在 MySQL 中无效)
"^(97(8|9))?\d{9}(\d|X)$"
以下是我运行此正则表达式的一些值:
ISBN10: 0470945176
by Paul D. Kimmel
Publisher: John Wiley & Sons
Copyright year: © 2011
和
Thomas E. Creighton (Author)
ISBN-10: 0471153028
Publisher: Wiley-Interscience; 1 edition (April 8, 1999)
2878 pages
【问题讨论】:
-
@eggyal 我添加了一些我正在运行它的值