match python request code example Example: python string match http re.findall(r'https?://[^\s<>"]+|www\.[^\s<>"]+', str(STRING))