I want to find the words which contain the same string repeated twice.
(e.g. wookokss
(ok/ok), ccsssscc
(ss/ss)).
I think the expression is \(\w*\)\0
.
Another try is to find the words which consist of the same string repeated twice. My answer is \<\(\w*\)\0\>
. (word beginning + grouping(word) + group capture + word ending)
But they don't work. Could anybody help me?
*
because of empty string. Another is using\0
to represent the whole string.