all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Angus Comber <anguscomber@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: How to get count of a specific character
Date: Tue, 4 Feb 2014 07:28:51 -0800 (PST)	[thread overview]
Message-ID: <d12596e8-0e7c-4325-afd8-afc6b9fe6aff@googlegroups.com> (raw)
In-Reply-To: <mailman.13678.1391525077.10748.help-gnu-emacs@gnu.org>

On Tuesday, 4 February 2014 14:44:21 UTC, Nicolas Richard  wrote:
> Angus Comber <anguscomber@gmail.com> writes:
> 
> 
> 
> > I have a buffer which is a massive long line of names followed by
> 
> > semi-colon. I want to get a list of the number of names I have. I can
> 
> > highlight the region and use wc to get count of words and divide by 2
> 
> > to get a rough measure.
> 
> >
> 
> > But it would be an easy task if I could simply get a count of the number of semi-colon characters?
> 
> >
> 
> > Does anyone know a way to get this?
> 
> >
> 
> 
> 
> highlight region and:
> 
> M-x count-matches RET ; RET
> 

Brilliant, thanks.  Note you have to escape ;


  parent reply	other threads:[~2014-02-04 15:28 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-04 14:29 How to get count of a specific character Angus Comber
2014-02-04 14:44 ` Nicolas Richard
2014-02-04 14:48 ` Thorsten Jolitz
2014-02-04 14:49 ` Loris Bennett
     [not found] ` <mailman.13678.1391525077.10748.help-gnu-emacs@gnu.org>
2014-02-04 15:28   ` Angus Comber [this message]
2014-02-04 15:34     ` Nicolas Richard

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=d12596e8-0e7c-4325-afd8-afc6b9fe6aff@googlegroups.com \
    --to=anguscomber@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.