Hi Nicolas, Sorry I mistyped in the message, I did have two colons when trying it out. I will look into the function you pointed out. When you said you cannot reproduce it, does that mean it works/matches for you? I am using Emacs 25.3.5 and org-20180226 -f On Sat, Apr 14, 2018 at 12:42 AM, Nicolas Goaziou wrote: > Hello, > > "Frankie Y. Liu" writes: > > > For: > > > > \\.pdf:\\([0-9]+\\)\\' > > You forgot a colon. > > > [0-9]+ vs \d+ same issue, since the path not the link is being > > matched. > > > > Example: > > file:foo.pdf::1 will be matching on file:foo.pdf and the ::1 is > > dropped. > > > I cannot reproduce it here. The function > `org-file-apps-entry-match-against-dlink-p' is responsible for deciding > if a link needs to be matched in full, or not. > > Regards, > > -- > Nicolas Goaziou 0x80A93738 >