Test, validate and match regular expressions
This regex detects repeated text sequences in multiline text, matching words (including Spanish accented characters á-ú) optionally followed by a period or comma and whitespace before the next capitalized word. The word-separator pattern must repeat at least 3 times, and a backreference (\1) then requires the identical captured sequence to appear again. Useful for finding duplicated phrases, stuttered speech patterns, or spam-like repetitive content in text analysis, especially in Spanish-language content.