From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Perry Smith Newsgroups: gmane.emacs.help Subject: Re: multiline regex mode? Date: Fri, 24 Nov 2006 21:32:22 -0600 Message-ID: <103FCBBB-B642-4856-A110-1ED739CFDAAE@easesoftware.com> References: <87u00o1r9r.fsf@hans.local.net> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: multipart/mixed; boundary="===============1731860975==" X-Trace: sea.gmane.org 1164425586 22070 80.91.229.2 (25 Nov 2006 03:33:06 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 25 Nov 2006 03:33:06 +0000 (UTC) Cc: Dieter Wilhelm , GNU Emacs List Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Nov 25 04:33:01 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GnoHg-0001YI-94 for geh-help-gnu-emacs@m.gmane.org; Sat, 25 Nov 2006 04:32:56 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GnoHf-0006lV-P4 for geh-help-gnu-emacs@m.gmane.org; Fri, 24 Nov 2006 22:32:55 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GnoHP-0006kr-Ba for help-gnu-emacs@gnu.org; Fri, 24 Nov 2006 22:32:39 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GnoHO-0006kP-D3 for help-gnu-emacs@gnu.org; Fri, 24 Nov 2006 22:32:38 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GnoHO-0006kM-6e for help-gnu-emacs@gnu.org; Fri, 24 Nov 2006 22:32:38 -0500 Original-Received: from [64.192.143.210] (helo=easeserver.easesoftware.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GnoHN-0004JY-TJ for help-gnu-emacs@gnu.org; Fri, 24 Nov 2006 22:32:38 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by easeserver.easesoftware.com (Postfix) with ESMTP id 339B454C7AE; Fri, 24 Nov 2006 21:32:32 -0600 (CST) Original-Received: from easeserver.easesoftware.com ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 17093-03; Fri, 24 Nov 2006 21:32:28 -0600 (CST) Original-Received: from [64.192.143.210] (easeserver.easesoftware.com [64.192.143.210]) by easeserver.easesoftware.com (Postfix) with ESMTP id 0BDA354C784; Fri, 24 Nov 2006 21:32:28 -0600 (CST) In-Reply-To: Original-To: Peter Dyballa X-Mailer: Apple Mail (2.752.2) X-Virus-Scanned: by amavisd-new at easesoftware.net 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:38952 Archived-At: --===============1731860975== Content-Type: multipart/alternative; boundary=Apple-Mail-4--712734783 --Apple-Mail-4--712734783 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=WINDOWS-1252; delsp=yes; format=flowed On Nov 24, 2006, at 4:51 PM, Peter Dyballa wrote: > > Am 24.11.2006 um 22:14 schrieb Dieter Wilhelm: > >> Just for completeness: where to look for the answer? In AWK, Perl, an >> Elisp function on the Emacs wiki? > > Into this list =96 or its archive(s)! This kind of question was =20 > answered more than once. This year, last year, ... It might be time =20= > to put it into an FAQ or a Wiki. Hints are given in the Elisp info =20 > doc on Regexp (where the full description can be found): > > `.' (Period) > is a special character that matches any single character > except a newline. > =09 > `[^ ... ]' > A complemented character alternative can match a newline, > unless newline is mentioned as one of the characters not > to match. This is in contrast to the handling of regexps > in programs such as `grep'. > > So "{[^}]*}" stands for 'a region that starts with `{=B4 and has no `}=20= > =B4 until the final `}=B4 is hit; between both braces any number =20 > (starting with 0) of any character except `}=B4 can appear.' I don't quite understand why this should be in an "emacs" FAQ or =20 wiki. Its basic regular expressions. One such document is here: http://en.wikipedia.org/wiki/Regular_expressions#Syntax Perry Smith ( pedz@easesoftware.com ) Ease Software, Inc. ( http://www.easesoftware.com ) Low cost SATA Disk Systems for IBMs p5, pSeries, and RS/6000 AIX systems --Apple-Mail-4--712734783 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=WINDOWS-1252
On Nov 24, 2006, at = 4:51 PM, Peter Dyballa wrote:


Am 24.11.2006 um 22:14 schrieb Dieter = Wilhelm:

Just for = completeness: where to look for the answer? In AWK, Perl, an
Elisp function on the Emacs = wiki?

Into this list =96 or its = archive(s)! This kind of question was answered more than once. This = year, last year, ... It might be time to put it into an FAQ or a Wiki. = Hints are given in the Elisp info doc on Regexp (where the full = description can be found):

`.' (Period)
=A0 =A0 is a special character that matches any = single character
=A0 =A0 = except a newline.

`[^ ... = ]'
=A0 =A0 = A complemented character alternative can match a newline,
=A0 =A0 = unless newline is mentioned as one of the characters not
=A0 =A0 = to match.=A0 This is in contrast to the handling of regexps
=A0 =A0 = in programs such as `grep'.

So "{[^}]*}" = stands for 'a region that starts with `{=B4 and has no `}=B4 until the = final `}=B4 is hit; between both braces any number (starting with 0) of = any character except `}=B4 can = appear.'

I don't quite understand why = this should be in an "emacs" FAQ or wiki.=A0 Its basic regular = expressions.=A0 One such document is here:


Perry Smith (=A0pedz@easesoftware.com = )
Ease Software, Inc. (=A0http://www.easesoftware.com = )

Low cost SATA = Disk Systems for IBMs p5, pSeries, and RS/6000 AIX systems



= --Apple-Mail-4--712734783-- --===============1731860975== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ help-gnu-emacs mailing list help-gnu-emacs@gnu.org http://lists.gnu.org/mailman/listinfo/help-gnu-emacs --===============1731860975==--