Alan Schmitt <alan.schm...@polytechnique.org> writes:

> Thank you for the suggestion. I'm already doing something similar:
> #+begin_src emacs-lisp
> (let ((link (org-store-link nil))
>       (name (org-element-property :raw-value (org-element-at-point))))
> ...)
> #+end_src

You can also use org-bracket-link-regexp, if you want:

(let ((link "[[http://example.com][Description]]";))
  (and (string-match org-bracket-link-regexp link)
       (match-string 3 link)))

Sacha
   
  


Reply via email to