From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dieter Wilhelm Newsgroups: gmane.emacs.help Subject: Re: multiline regex mode? Date: Sat, 25 Nov 2006 04:01:41 +0100 Organization: The Church of Emacs Message-ID: <87lkm01b6y.fsf@hans.local.net> References: <87u00o1r9r.fsf@hans.local.net> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1164451117 5577 80.91.229.2 (25 Nov 2006 10:38:37 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 25 Nov 2006 10:38:37 +0000 (UTC) Cc: GNU Emacs List Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Nov 25 11:38:35 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 1GnuvZ-0007E0-0T for geh-help-gnu-emacs@m.gmane.org; Sat, 25 Nov 2006 11:38:33 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GnuvY-0002pD-Hc for geh-help-gnu-emacs@m.gmane.org; Sat, 25 Nov 2006 05:38:32 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Gnus8-0008M7-9k for help-gnu-emacs@gnu.org; Sat, 25 Nov 2006 05:35:00 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Gnus5-0008Kf-Ff for help-gnu-emacs@gnu.org; Sat, 25 Nov 2006 05:34:58 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Gnus4-0008KH-Kf for help-gnu-emacs@gnu.org; Sat, 25 Nov 2006 05:34:56 -0500 Original-Received: from [212.227.126.186] (helo=moutng.kundenserver.de) by monty-python.gnu.org with esmtp (Exim 4.52) id 1Gnus4-0006Xq-2A for help-gnu-emacs@gnu.org; Sat, 25 Nov 2006 05:34:56 -0500 Original-Received: from [84.167.44.164] (helo=duenenhof-wilhelm.de) by mrelayeu.kundenserver.de (node=mrelayeu0) with ESMTP (Nemesis), id 0MKwh2-1Gnus306M5-0001FO; Sat, 25 Nov 2006 11:34:55 +0100 Original-Received: by duenenhof-wilhelm.de (Postfix, from userid 1000) id 1B2394356C; Sat, 25 Nov 2006 04:01:41 +0100 (CET) Original-To: Peter Dyballa In-Reply-To: (Peter Dyballa's message of "Fri\, 24 Nov 2006 23\:51\:35 +0100") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) X-Provags-ID: kundenserver.de abuse@kundenserver.de login:d7ab225b98a136e1c2910381f940ecb9 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:38959 Archived-At: Peter Dyballa writes: > 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 =E2=80=93 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) > is a special character that matches any single character > except a newline. >=20=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 `{=C2=B4 and has no `}= =C2=B4 > until the final `}=C2=B4 is hit; between both braces any number (starting > with 0) of any character except `}=C2=B4 can appear.' Thanks Peter for the hassle. Maybe I expressed myself in a confusing manner: The period and the character alternatives I understand. What I really wanted to know is where to look for a possibility of searching for *balanced* brackets like { { } } because I'll need this in my own Elisp stuff. It's clear that there is some code in Emacs for it (e. g. C-M-f etc.) but I have a hunch that there might be something else out there. Maybe a regexp extension in Perl or ... --=20 Best wishes H. Dieter Wilhelm Darmstadt, Germany