Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
Python

r"
(?<=[;\(])([\w\s]+(et al.)?,\s+\d{4})(?=[;\)])
"
g

Description

Finds author/year formatted refs

Submitted by anonymous - 3 years ago