help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Regex to find long sentences in LaTeX


From: Andreas Röhler
Subject: Re: Regex to find long sentences in LaTeX
Date: Sun, 25 May 2008 20:39:31 +0200
User-agent: KMail/1.9.6 (enterprise 20070904.708012)

Am Donnerstag, 22. Mai 2008 schrieb address@hidden:
> 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.
> 
> Or maybe a regex isn't the best thing for this?

Why not simple do an incremental search for Sentence-end (probably a dot 
followed by one or two spaces)? Than all sentence-ends will be highlighted. 
You may scroll the buffer and watch the distances.

Andreas Roehler
> 
> Thanks very much,
> 
> Jim
> 
> 
> 






reply via email to

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