Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
PCRE (PHP <7.3)

/
(.*?)\=.*?\r*\n\1
/
gmi

Description

This regex is to find duplicates in properties- or config-files with '='-separated key value pairs.

Submitted by vgross - 8 years ago