Regular Expressions 101

Sponsors

Library entries

0
pcre2

International names

Regex for international names
Submitted by Pierre Jochem - 22 days ago
0
python

audiomack

valid url test for audiomack website
Submitted by Abdullah Ibn Fulan - 22 days ago
0
pcre2

搜索第一个括号

\(#.*?\)
Submitted by Michael - a month ago

ISBN-13

Vote

1

Regular Expression
javascript

/
^(?:ISBN(?:-13)?:? )?(?<gs1>\d{3})(?:(?<number>\d{9})|(?=[\d -]{14}$)[ -](?<registrationGroup>\d{1,5})[ -](?<registrant>\d{1,7})[ -](?<publication>\d{1,6})[ -])(?<checkDigit>\d)$
/
gm

Description

Loading markdown...
Submitted by Alejandro - 3 months ago