'Given a vuln as string, return the path as a string (empty string
for path not found).'

def __get_path_from_vuln(self, vuln):

    path_search = re.search('(?P<url>https?://[^\\s]+)', vuln)
    path = (path_search.group('url') if path_search else '')
    return path
