s/\[(.*?)\|(.*?)(?:\|(.*?))?\]/ "<a href=\"$1\"" . ($3 ? " target=\"$3\"" : "") . ">$2<\/a>" /exg; [download]
In reply to Re: Link regex by saintmike in thread Link regex by coldfingertips