[OS X TeX] duplicate words

Jung-Tsung Shen jushen at gmail.com
Tue Jul 27 09:53:33 EDT 2010


On Tue, Jul 27, 2010 at 8:32 AM, Manuel Pégourié-Gonnard <mpg at elzevir.fr> wrote:
> Le 27/07/2010 14:42, Alan Munn a écrit :
>> Anyway, the following regexp really does work:
>>
>> \b(\w+)\b\s+\1
>>
> I'm afraid it will match on "foo foobar". I'd recommend:
>
> \b(\w+)\s+\1\b
>
> Manuel.

As a very end user, I wish one of these method (the one who will work)
could be implemented in TeXShop, with a button labeled as "find
duplicate word", and returns a list for further manual inspection.

JT



More information about the MacOSX-TeX mailing list