{ buf = $0; result = ""; match_idx = match(buf, "\"); while (match_idx > 0) { result = result substr(buf, 0, match_idx); result = result ""; buf = substr(buf, match_idx+RLENGTH); match_idx = match(buf, "\"); }; result = result buf buf = result; result = ""; match_idx = match(buf, "\"); while (match_idx > 0) { result = result substr(buf, 0, match_idx); result = result "[[" substr(buf, match_idx+9, RLENGTH-11) "|"; buf = substr(buf, match_idx+RLENGTH); match_idx = match(buf, "\<\/a\>"); result = result substr(buf, 0, match_idx); result = result "]]"; buf = substr(buf, match_idx+RLENGTH); match_idx = match(buf, "\"); }; result = result buf print result; }