emacs-wiki-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[emacs-wiki-discuss] Re: A suggestion for note headers


From: drkm
Subject: [emacs-wiki-discuss] Re: A suggestion for note headers
Date: Wed, 20 Jul 2005 22:28:54 +0200
User-agent: Gnus/5.110003 (No Gnus v0.3) Emacs/22.0.50 (windows-nt)

drkm writes:

> Chris McMahan writes:

>> +  (while (re-search-forward "^\\.#\\([0-9]+\\) [^\[\[\n]+" end t)

>   You don't search for "[[".  You search for not any "[" (because
> it's a negative character class).

  BTW, what you want instead of "[^\[\[\n]+" is maybe something
like:

    "\\(:?[^\\[\n]\\|\\[[^\\[\n]\\)"

  I say "something like" because I'm not sure we can backslash
escape in character classes.

--drkm





reply via email to

[Prev in Thread] Current Thread [Next in Thread]