emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] How to escape "[" and "]" characters in org-mode links


From: Kyle Meyer
Subject: Re: [O] How to escape "[" and "]" characters in org-mode links
Date: Wed, 29 Jul 2015 11:55:19 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)

Ivanov Dmitry <address@hidden> wrote:
> Hi, Xiha
>
> Unfortunately URL encoding the [ and ] doesn't work for me. Try to
> reproduce it. Create 2 files:
>
> file.txt. Content:
> --------------------------------
> $form['text1']
>
> $form['text2']
> --------------------------------
> file.org. Content:
> --------------------------------
> [[./file.txt::$form%5B'text2'%5D][text2]]
> --------------------------------
>
> When I click the link, it says "No match".

While the search string is escaped elsewhere in org-link-search using
regexp-quote, it is treated as a regular expression for normal text
search.  Try escaping with "\":

    [[./file.txt::$form\%5B'text2'\%5D]]

--
Kyle



reply via email to

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