[OS X TeX] duplicate words

Manuel Pégourié-Gonnard mpg at elzevir.fr
Mon Jul 26 18:53:56 CEST 2010


Le 26/07/2010 18:38, Alan Munn a écrit :
>> I think you need
>>
>> \s(\w+)\s+\1\s
>>
> 
> Except that that one doesn't work, and Claus's does?
> 
I assume the problem is line endings and beginnings. I'm not sure which kind of
regexes BBEdit is using, but

\<(\w+)\s+\1\>

may do the trick (\< means beginning of word).

Manuel.



More information about the macostex-archives mailing list