On 10/28/13, 2:12 PM, Achim Gratz wrote:
Peter Davis writes:# hyperlinks s/\[\[([^]]*)\]\]/[[file:$1.org][$1]]/g;Try this to fix the links maybe:# hyperlinks s/\[\[([^]]*)\]\]/ my $l = $1; $l =~ s: :_:g; "[[file:$l.org][$l]]"/gex;
Excellent! I modified it slightly to keep the spaces in the display string: # hyperlinks s/\[\[([^]]*)\]\]/ my $l = $1; my $orig = $1; $l =~ s: :_:g; "[[file:$l.org][$orig]]"/gex; Thanks, Achim! -pd -- ---- Peter Davis The Tech Curmudgeon www.techcurmudgeon.com