Answers for "python check if string is url"

-1

python check if string is url

from django.core.validators import URLValidator()
validate = URLValidator()

try:
    validate("http://www.avalidurl.com/")
    print("String is a valid URL")
except ValidationError as exception:
    print("String is not valid URL")
Posted by: Guest on April-14-2021

Code answers related to "python check if string is url"

Python Answers by Framework

Browse Popular Code Answers by Language