I've pushed a change to this new feature: http://orgmode.org/w/?p=org-mode.git;a=commit;h=1666b9
Using %n is not good, because it will match many escaped strings that you don't want to match. Using %\n looks good to me as it resonates with \1 in replace-regexp. Toby, let me know if you agree with this change. Thanks! -- Bastien