emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Todd Neal <tolchz@tolchz.net>
To: emacs-orgmode@gnu.org
Subject: Question aboug Regexp
Date: Mon, 22 May 2006 23:02:59 -0400	[thread overview]
Message-ID: <87lkstxx24.fsf@tolchz.net> (raw)



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
     2	  (concat
     3	   "<?\\(" (mapconcat 'identity org-link-types "\\|") "\\):"
     4	   "\\([^" org-non-link-chars " ]"
     5	   "[^]\t\n\r]*"
     6	   "[^" org-non-link-chars " ]\\)>?")
     7	   "Matches a link with spaces, optional angular brackets around it.")


I am more used to PCRE so I may be incorrect, but is the "[^]" a typo?


Also we have the following definition:

(defconst org-non-link-chars "]\t\n\r<>")


Doesn't this make line 4 evaluate to:

"\\([^]\t\n\r<> ]"

or is the right-bracket escaped somehow?


Todd

             reply	other threads:[~2006-05-23  3:02 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-05-23  3:02 Todd Neal [this message]
2006-05-23  3:58 ` Question aboug Regexp Carsten Dominik
2006-05-23  4:10   ` Todd Neal

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=87lkstxx24.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).