all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: bkhl@elektrubadur.se (Björn Lindström)
Subject: Re: regexp for balanced square brackets
Date: Thu, 20 Nov 2003 02:39:08 +0100	[thread overview]
Message-ID: <877k1vn7ib.fsf@lucien.dreaming> (raw)
In-Reply-To: x5islglych.fsf@lola.goethe.zz

David Kastrup <dak@gnu.org> writes:

> Miguel Frasson <frasson@brutus.math.leidenuniv.nl> 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 <bkhl@elektrubadur.se>
http://bkhl.elektrubadur.se/
ICQ: 82945879

      reply	other threads:[~2003-11-20  1:39 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-11-19 23:38 regexp for balanced square brackets Miguel Frasson
2003-11-19 23:42 ` David Kastrup
2003-11-20  1:39   ` Björn Lindström [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=877k1vn7ib.fsf@lucien.dreaming \
    --to=bkhl@elektrubadur.se \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.