From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Colin S. Miller" Newsgroups: gmane.emacs.help Subject: Re: Counting words Date: Wed, 11 Apr 2007 20:42:11 +0100 Organization: SunSITE.dk - Supporting Open source Message-ID: <461d3a10$0$90263$14726298@news.sunsite.dk> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1176323809 3238 80.91.229.12 (11 Apr 2007 20:36:49 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 11 Apr 2007 20:36:49 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Apr 11 22:36:42 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HbjYV-0000AW-VM for geh-help-gnu-emacs@m.gmane.org; Wed, 11 Apr 2007 22:36:40 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hbjca-0005pa-MM for geh-help-gnu-emacs@m.gmane.org; Wed, 11 Apr 2007 16:40:52 -0400 Original-Path: shelby.stanford.edu!newshub.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!news-fra1.dfn.de!storethat.news.telefonica.de!telefonica.de!news.germany.com!news.banetele.no!dotsrc.org!filter.dotsrc.org!news.dotsrc.org!not-for-mail User-Agent: Icedove 1.5.0.10 (X11/20070329) Original-Newsgroups: gnu.emacs.help In-Reply-To: Original-Lines: 36 Original-NNTP-Posting-Host: 62.56.97.131 Original-X-Trace: news.sunsite.dk DXC=^m9NY0JIAS9N=S_a\VX>h; YSB=nbEKnk; BeW^X3\7Qf3G1[Bg<0aH50\VT\m5_SIb6U_42Df:PaK8TcL2h5ahoT?kF_>m>CYcV?kUco4lmKTA6MKLBH?M`V2>]01T`Rm1cH8 Original-X-Complaints-To: staff@sunsite.dk Original-Xref: shelby.stanford.edu gnu.emacs.help:146987 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:42591 Archived-At: Wilfred Zegwaard (privé) wrote: > I found the wordcount thing. > I mean specific instances of words. The number of times eg that "the" > occurs in a text. But I need to search on specific combinations, like > "the exact word", but also a fuzzy search on specific combinations. > > Not HTML tags, but specific strings that this package that I use calls > TAGS and who are easily identifiable with a string or string combination. > > Wilfred > > Wilfred, you can use replace-regexp to do this Try M-x replace-regexp \bthe exact phrase\b \& \b means word-boundary, \& means replace with what was found. This is a bit nasty, but after the regexp-replace has finished, it should echo "Replaced xx occurrences" to the minibuffer. HTH, Colin S. Miller -- Replace the obvious in my email address with the first three letters of the hostname to reply.