(string)
return bool(re_url.match(string))
Returns true if a string looks like an URL

    >>> is_url('http://example.com/some-path/file.xml')
    True

    >>> is_url('something else')
    False
Returns true if a string looks like an URL
Returns true if a string looks like an URL
def is_url(string):
    """Returns true if a string looks like an URL

    >>> is_url('http://example.com/some-path/file.xml')
    True

    >>> is_url('something else')
    False
    """

    return bool(re_url.match(string))
def is_url ( string ) : return bool ( re_url . match ( string ) )