In Java, when doing a replaceAll to look for a regex pattern like:
replaceAll(\"\\\\?i\\\\b(\\\\w+)\\\\b(\\\\s+\\\\1)+\\\\b\", \"$1\");
(t
RegexBuddy is telling me if you want to include it at the beginning, this is the correct syntax:
"(?i)\\b(\\w+)\\b(\\s+\\1)+\\b"