I am interested to create a function in which it returns true if the string contains IP address using python.
def having_IP_Adress(URL):
URL.match('^(http|https)://\d+\.\d+\.\d+\.\d+\.*')
print (having_IP_Adress("http://197.248.5.23/"))
but it gives me an error