in reply to Regexp Problems

/(\w)\1/ # matches a repeated word character /(.)\1/ # matches any but mewline repeated

You can change behavior some more with modifier like /g for global or /s to let '.' match newlines. The \1 metacharacter refers to the first captured match.

After Compline,
Zaxo