Regex detection method for reference linking

This now enables us to handle parenthetical references that contain italics, bold etc