def get_link_pattern(): return re.escape(options.get('system.url-prefix')) \ .replace('https\\:', 'https?\\:') + '/'