From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andreas =?iso-8859-1?q?R=F6hler?= Newsgroups: gmane.emacs.help Subject: Re: Regex to find long sentences in LaTeX Date: Sun, 25 May 2008 20:39:31 +0200 Message-ID: <200805252039.32606.andreas.roehler@online.de> References: <873aoa9uug.wl%j.burton@brighton.ac.uk> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1211740626 20387 80.91.229.12 (25 May 2008 18:37:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 25 May 2008 18:37:06 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun May 25 20:37:46 2008 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 1K0L6I-0007b9-GL for geh-help-gnu-emacs@m.gmane.org; Sun, 25 May 2008 20:37:46 +0200 Original-Received: from localhost ([127.0.0.1]:57398 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K0L5X-0004QI-6M for geh-help-gnu-emacs@m.gmane.org; Sun, 25 May 2008 14:36:59 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K0L5F-0004NI-Va for help-gnu-emacs@gnu.org; Sun, 25 May 2008 14:36:42 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K0L5E-0004Lf-MN for help-gnu-emacs@gnu.org; Sun, 25 May 2008 14:36:41 -0400 Original-Received: from [199.232.76.173] (port=58193 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K0L5E-0004LU-DM for help-gnu-emacs@gnu.org; Sun, 25 May 2008 14:36:40 -0400 Original-Received: from moutng.kundenserver.de ([212.227.126.187]:54253) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1K0L5E-0005aP-BP for help-gnu-emacs@gnu.org; Sun, 25 May 2008 14:36:40 -0400 Original-Received: from noname (p54BE88A2.dip0.t-ipconnect.de [84.190.136.162]) by mrelayeu.kundenserver.de (node=mrelayeu5) with ESMTP (Nemesis) id 0ML25U-1K0L5215Lm-0006wq; Sun, 25 May 2008 20:36:28 +0200 User-Agent: KMail/1.9.6 (enterprise 20070904.708012) In-Reply-To: <873aoa9uug.wl%j.burton@brighton.ac.uk> Content-Disposition: inline X-Provags-ID: V01U2FsdGVkX1+SOxPjKMQvl9/0gCfRHS5ai8E3GujDv628WtH xUuhmrCWmD/grwIAR/b9MUhlF18LLow+dBIuzcmZj8PLilRGH3 uuUOHIdlIqfkqbhcgNKgg== X-detected-kernel: by monty-python.gnu.org: Linux 2.6? (barebone, rare!) 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:54303 Archived-At: Am Donnerstag, 22. Mai 2008 schrieb J.Burton@brighton.ac.uk: > 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 > > >