link regex updated for server side