[OS X TeX] duplicate words

Manuel Pégourié-Gonnard mpg at elzevir.fr
Tue Jul 27 09:32:08 EDT 2010


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.



More information about the MacOSX-TeX mailing list