Regular Expressions 101

Community Patterns

0

PLP redirection

PCRE2 (PHP >=7.3)
PLP redirection
Submitted by anonymous - 6 days ago
1

loyal

PCRE2 (PHP >=7.3)
loyal
Submitted by anonymous - 10 days ago
1

named capture

PCRE2 (PHP >=7.3)
simple named capture
Submitted by Gene - 11 days ago

Matches ISBN-10 or ISBN-13 in any text (separator can be space or -)

0

Regular Expression
PCRE2 (PHP >=7.3)

/
(ISBN(?:[- ]*1[03])?:* )+?((?=[0-9X]{10}$|(?=(?:[0-9]+[- ]){3})[- 0-9X]{13}|97[89][0-9]{10}|(?=(?:[0-9]+[- ]){4})[- 0-9]{17})(?:97[89][- ]?)?[0-9]{1,5}[- ]?[0-9]+[- ]?[0-9]+[- ]?[0-9X])
/
gm

Description

Loading markdown...
Submitted by anonymous - a year ago