From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: adamsonj@email.unc.edu (Joel J. Adamson) Newsgroups: gmane.emacs.help Subject: Re: Regex to find long sentences in LaTeX Date: Thu, 22 May 2008 22:42:10 -0400 Message-ID: <87bq2xive9.fsf@W0053328.mgh.harvard.edu> References: <873aoa9uug.wl%j.burton@brighton.ac.uk> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1211511465 4762 80.91.229.12 (23 May 2008 02:57:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 23 May 2008 02:57:45 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: J.Burton@brighton.ac.uk Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri May 23 04:58:21 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 1JzNU4-0006rz-N3 for geh-help-gnu-emacs@m.gmane.org; Fri, 23 May 2008 04:58:20 +0200 Original-Received: from localhost ([127.0.0.1]:49126 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JzNTK-0000dw-4n for geh-help-gnu-emacs@m.gmane.org; Thu, 22 May 2008 22:57:34 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JzNT1-0000bD-KP for help-gnu-emacs@gnu.org; Thu, 22 May 2008 22:57:15 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JzNSz-0000YN-VY for help-gnu-emacs@gnu.org; Thu, 22 May 2008 22:57:15 -0400 Original-Received: from [199.232.76.173] (port=51865 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JzNSz-0000Y1-R9 for help-gnu-emacs@gnu.org; Thu, 22 May 2008 22:57:13 -0400 Original-Received: from smtpsrv1.isis.unc.edu ([152.2.1.140]:46840 helo=smtp.unc.edu) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JzNSz-0006Dv-OQ for help-gnu-emacs@gnu.org; Thu, 22 May 2008 22:57:13 -0400 Original-Received: from edna (209-6-178-201.c3-0.arl-ubr1.sbo-arl.ma.cable.rcn.com [209.6.178.201]) (authenticated bits=0) by smtp.unc.edu (8.13.4/8.13.4) with ESMTP id m4N2unte027334; Thu, 22 May 2008 22:56:58 -0400 (EDT) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Solaris 9 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:54258 Archived-At: J.Burton@brighton.ac.uk 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 Regexps") Joel -- Joel J. Adamson Biostatistician Pediatric Psychopharmacology Research Unit Massachusetts General Hospital Boston, MA 02114 (617) 643-1432 (303) 880-3109 Public key: http://pgp.mit.edu http://www.unc.edu/~adamsonj