Loading ...
Sorry, an error occurred while loading the content.

29892Re: Searching for words that are repeated more than once consecutively

Expand Messages
  • Preben Peppe Guldberg
    Jul 2, 2002
      Thus wrote Bram Moolenaar (Bram@...) on [020702]:

      > Yegappan Lakshmanan wrote:

      > > How do I search for words that are repeated consecutively more
      > > than once? For example, search for "the the" or "a a", etc.
      > > Note that the word is an arbitrary word (i.e. I cannot just
      > > search for /the the or /a a).

      > /\(\<\k\+\>\)\s\+\1

      I'd say that should be


      or "an anchor" will be matched, too.

      "Before you criticize someone, walk
      Preben "Peppe" Guldberg __/-\__ a mile in his shoes. That way, if
      c928400@... (o o) he gets angry, he'll be a mile away
      ----------------------oOOo (_) oOOo-- - and barefoot." --Sarah Jackson
    • Show all 10 messages in this topic