Regular Expressions 101

Community Patterns

Repetitions

2

Regular Expression
PCRE (PHP <7.3)

/
(([a-zá-ú]+)[\.,]?\s[A--Úa-zá-ú]){3,}\1
/
gm

Description

More than three words repeated in 3.

Submitted by paconaranjo - 10 years ago