home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!noc.near.net!news.Brown.EDU!qt.cs.utexas.edu!yale.edu!spool.mu.edu!sdd.hp.com!swrinde!gatech!concert!sas!mozart.unx.sas.com!saswfk
- From: saswfk@thurstne.unx.sas.com (Warren F. Kuhfeld)
- Newsgroups: gnu.emacs.help
- Subject: Re: Get rid of double words - looking for .el file
- Keywords: double words
- Message-ID: <BuMLt2.Jn4@unx.sas.com>
- Date: 15 Sep 92 15:31:50 GMT
- References: <hfaester.716566184@Physik.TU-Muenchen.DE>
- Sender: news@unx.sas.com (Noter of Newsworthy Events)
- Organization: SAS Institute Inc. Cary NC
- Lines: 16
- Originator: saswfk@thurstne.unx.sas.com
- Nntp-Posting-Host: thurstne.unx.sas.com
-
-
- In article <hfaester.716566184@Physik.TU-Muenchen.DE>, hfaester@Physik.TU-Muenchen.DE (Hannes Faestermann) writes:
- |> I'm looking for an emacs lisp file that allows cleaning text files
- |> from double occurences of words like in 'In the the summertime...'.
-
- Try this:
-
- (defun double ()
- "Search for double words."
- (interactive)
- (re-search-forward "\\(\\b[a-z]+\\b\\)\\W+\\b\\1\\b"))
- --
- ----------------------------------------------------------------------
- Warren F. Kuhfeld Statistical R & D (919) 677-8000 x7922
- saswfk@unx.sas.com SAS Institute Inc. (919) 677-8123 (Fax)
- Cary, NC 27513-2414
-