check if an element is in a list is in a string code example
Example: if list item in string python
if any(ext in url_string for ext in extensionsToCheck):
print(url_string)
if any(ext in url_string for ext in extensionsToCheck):
print(url_string)