1 2 3 4
$ grab 'x/[^\n].+?(?=\n\n|$)/ g/(\b\w+\b)\s+\1/ h/(\b\w+\b)\s+\1/' foo This is also a paragraph but it contains <doubled> <doubled> words.