29914Re: Searching for words that are repeated more than once consecutively
- Jul 3 8:44 AM/ FROM: Robert Montante <bobmon@...>, Jul 3 9:04 2002
| ABOUT: Re: Searching for words that are repeated more than once consecutively
| >Bram Moolenaar:
| > /\(\<\k\+\>\)\s\+\1
| >Preben Peppe Guldberg:
| > /\(\<\k\+\>\)\s\+\1\>
| >Gary Holloway:
| > /\(\<\k\+\>\)\(\_s\+\<\1\>\)\+
| Ummm... why are you guys all using the "\k" atom? Wouldn't "\w" make
| more sense?
It really depends what you consider a "word" that you're looking for.
\w Will only find [0-9A-Za-z_]
\k Is dependent upon your 'iskeyword' setting.
It's really a matter of preference.
| So here's my entry:
| (This should match the first two words of a three-word repetition.)
\ END: Robert Montante
- << Previous post in topic