From: Nicolas Richard <theonewiththeevillook@yahoo.fr>
To: Angus Comber <anguscomber@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: How to get count of a specific character
Date: Tue, 04 Feb 2014 15:44:21 +0100 [thread overview]
Message-ID: <87bnynued6.fsf@yahoo.fr> (raw)
In-Reply-To: <bc4b3de7-4e3c-4769-8343-831ed69dabdf@googlegroups.com> (Angus Comber's message of "Tue, 4 Feb 2014 06:29:35 -0800 (PST)")
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
--
Nico.
next prev parent reply other threads:[~2014-02-04 14:44 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 [this message]
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
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=87bnynued6.fsf@yahoo.fr \
--to=theonewiththeevillook@yahoo.fr \
--cc=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.