only compile regex once for finding links in memos