[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Regex to find long sentences in LaTeX

From: Joel J. Adamson
Subject: Re: Regex to find long sentences in LaTeX
Date: Thu, 22 May 2008 22:42:10 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

address@hidden writes:

> Hi, can someone show me a regex to find sentences in LaTeX docs with more 
> than a
> certain number of words? I want to find all sentences with > 30
> words (I have a weakness for writing waffling sentences :-))
> I started to get something going in re-builder but it needs to allow
> LaTeX escape chars \{}[] (are there more?) within sentences as well as
> normal punctuation.

Emacs has some standard regular expressions for sentences and
paragraphs.  Check out the Elisp manual (info "(elisp) Standard


Joel J. Adamson
Pediatric Psychopharmacology Research Unit
Massachusetts General Hospital
Boston, MA  02114
(617) 643-1432
(303) 880-3109
Public key:

reply via email to

[Prev in Thread] Current Thread [Next in Thread]