From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: bkhl@elektrubadur.se (=?iso-8859-1?q?Bj=F6rn_Lindstr=F6m?=) Newsgroups: gmane.emacs.help Subject: Re: regexp for balanced square brackets Date: Thu, 20 Nov 2003 02:39:08 +0100 Organization: Upsalafandom Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <877k1vn7ib.fsf@lucien.dreaming> References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1069293688 5286 80.91.224.253 (20 Nov 2003 02:01:28 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 20 Nov 2003 02:01:28 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Nov 20 03:01:26 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AMe8L-0004LT-00 for ; Thu, 20 Nov 2003 03:01:25 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AMf3w-00024v-O2 for geh-help-gnu-emacs@m.gmane.org; Wed, 19 Nov 2003 22:00:56 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!uninett.no!news.algonet.se!'newsfeed1.telenordia.se'!algonet!newsfeed.sunet.se!news01.sunet.se!news2.glocalnet.net!lucien.dreaming!news Original-Newsgroups: gnu.emacs.help Original-Lines: 19 Original-NNTP-Posting-Host: md46904c5.utfors.se Original-X-Trace: yggdrasil.glocalnet.com 1069292892 28071 212.105.4.197 (20 Nov 2003 01:48:12 GMT) Original-X-Complaints-To: abuse@glocalnet.net Original-NNTP-Posting-Date: 20 Nov 2003 01:48:12 GMT X-PGP-Key: http://bkhl.elektrubadur.se/Key.html X-Home-Page: http://bkhl.elektrubadur.se/ User-Agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3 (gnu/linux) Cancel-Lock: sha1:HL1JdqJypT/6J89VawYvAfS4Ci0= Original-Xref: shelby.stanford.edu gnu.emacs.help:118464 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:14405 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:14405 David Kastrup writes: > Miguel Frasson writes: > >> Does somebody knows how to make a regexp such that [..], [...[...]..], >> [...[.[..].]..] matches? > > No. But some people know how to prove that a regexp won't cut it, ever > (some Perl extensions to regexps can do, IIRC). If you want to do this in Emacs, maybe you should just write the structure you want as a Lisp expression, and just have Elisp parse it. (It's kind of hard to tell without knowing what you are trying to do, however.) -- Björn Lindström http://bkhl.elektrubadur.se/ ICQ: 82945879