Regular Expressions 101

Community Patterns

Authors with year reference

1

Regular Expression
PCRE2 (PHP >=7.3)

/
\([^)]+,\s\d{4}(;\s[^)]+,\s\d{4})*\)
/
gm

Description

Try to find the author of a sentence following the next format:

(Author, year) (Author, year; Author, year)

Submitted by Antonio García Maestre - 9 months ago