Community Patterns

Community Library Entry

0

Regular Expression
Created·2022-01-04 10:12
Flavor·PCRE2 (PHP)

/
([{,]([A-z0-9 ]+?)[,][A-z0-9, ]*?)\2+([,}])
/
gm
Open regex in editor

Description

Search for a repeated bibitem inside the curly braces of a latex \cite command and removes it.

Submitted by anonymous