import re


def is_url(string):
    """This checks if `string` is a url or not"""
    if re.match(
        r"http[s]?://(?:[a-zA-Z]|[0-9]|[$-_@.&+]|[!*(),]|(?:%[0-9a-fA-F][0-9a-fA-F]))+",
        string,
    ):
        return True
    else:
        return False