all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* regexp for balanced square brackets
@ 2003-11-19 23:38 Miguel Frasson
  2003-11-19 23:42 ` David Kastrup
  0 siblings, 1 reply; 3+ messages in thread
From: Miguel Frasson @ 2003-11-19 23:38 UTC (permalink / raw)



Hi.

Does somebody knows how to make a regexp such that [..], [...[...]..],
[...[.[..].]..] matches? It would be nice if any number of internal [..]
work and "dot" means any characters in a certain set.

Thanks.

Miguel

-- 
Miguel Vinicius Santini Frasson
http://www.math.leidenuniv.nl/~frasson

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: regexp for balanced square brackets
  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
  0 siblings, 1 reply; 3+ messages in thread
From: David Kastrup @ 2003-11-19 23:42 UTC (permalink / raw)


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).

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: regexp for balanced square brackets
  2003-11-19 23:42 ` David Kastrup
@ 2003-11-20  1:39   ` Björn Lindström
  0 siblings, 0 replies; 3+ messages in thread
From: Björn Lindström @ 2003-11-20  1:39 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-11-20  1:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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

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.