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