Is it possible to find sequences where the ending letter of one word is the same as the beginning letter of the next word, and the ending letter of that word is the same as the beginning letter of the next next word and so on?
For example:
elementum magna sodales
should match elementum magna
, while something like Proin nunc curna, aliquet nec
should return Proin nunc curna, aliquet
, but an earring
should return nothing because n
is not the same as e
.
I've tried something like \w*(\w)[\s:;'",.?!]*\1\w*
but that only matches two words, I kind of need them to daisy chain together.