From: Todd Neal <tolchz@tolchz.net>
To: emacs-orgmode@gnu.org
Subject: Re: Question aboug Regexp
Date: Tue, 23 May 2006 00:10:40 -0400 [thread overview]
Message-ID: <87irnx4bzz.fsf@tolchz.net> (raw)
In-Reply-To: 7f55ba6da92bc0c958dea27173f9e47b@science.uva.nl
Carsten Dominik <dominik@science.uva.nl> writes:
> On May 23, 2006, at 5:02, Todd Neal wrote:
>
>>
>>
>> I am looking at why the following link does not work:
>>
>> [[elisp: (+ 1 2 3)]]
>>
>> I think that the problem lies with this regexp:
>>
>> 1 (defconst org-link-re-with-space2
>
>
> The regexp org-link-re-with-space2 requires that the first character
> after elisp: is not a space character. This was originally to make
> sure that the following would not be matched as a link:
>
> I can explain you a feature in elisp: Parenthesis are everything.
>
> This is not documented properly, thanks for reporting this.
>
> In a regexp character class, the first character of a class is special
> and can be used to include character into he class which are otherwise
> difficult to get into a class, for example the minus "-" or a square
> bracket. Since a character class [] or [^] is meaningless, this is a
> special case so that []] matches the closing bracket and [^]]
> everything besides the closing bracket.
>
> - Carsten
Thanks, I should have checked the info a bit more carefully.
Todd
prev parent reply other threads:[~2006-05-23 4:09 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-05-23 3:02 Question aboug Regexp Todd Neal
2006-05-23 3:58 ` Carsten Dominik
2006-05-23 4:10 ` Todd Neal [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
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87irnx4bzz.fsf@tolchz.net \
--to=tolchz@tolchz.net \
--cc=emacs-orgmode@gnu.org \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).