/(\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
In reply to Re: Regexp Problems
by Zaxo
in thread Regexp Problems
by cored
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |