original_docstring: Return whether or not given value is a valid URL.
docstring: Return whether or not given value is a valid URL.
docstring_tokens: Return whether or not given value is a valid URL .
code: def is_url(value):
      """Return whether or not given value is a valid URL."""
  
      regex = re.compile(
          r"^"
          # startchar <
          r"<?"
          # protocol identifier
          r"(?:(?:https?|ftp)://)"
          r"(?:"
          r"(localhost)"
          r"|"
          # host name
          r"(?:(?:[a-z\u00a1-\uffff0-9]-?)*[a-z\u00a1-\uffff0-9]+)"
          # domain name
          r"(?:\.(?:[a-z\u00a1-\uffff0-9]-?)*[a-z\u00a1-\uffff0-9]+)*"
          # TLD identifier
          r"(?:\.(?:[a-z\u00a1-\uffff]{2,}))"
          r")"
          # port number
          r"(?::\d{2,5})?"
          # resource path
          r"(?:/\S*)?"
          # query string
          r"(?:\?\S*)?"
          # endchar >
          r">?"
          r"$",
          re.UNICODE | re.IGNORECASE
      )
      return regex.match(value)
code_tokens: def is_url ( value ) : regex = re . compile ( r"^" r"<?" r"(?:(?:https?|ftp)://)" r"(?:" r"(localhost)" r"|" r"(?:(?:[a-z\u00a1-\uffff0-9]-?)*[a-z\u00a1-\uffff0-9]+)" r"(?:\.(?:[a-z\u00a1-\uffff0-9]-?)*[a-z\u00a1-\uffff0-9]+)*" r"(?:\.(?:[a-z\u00a1-\uffff]{2,}))" r")" r"(?::\d{2,5})?" r"(?:/\S*)?" r"(?:\?\S*)?" r">?" r"$" , re . UNICODE | re . IGNORECASE ) return regex . match ( value )
short_docstring: Return whether or not given value is a valid URL.
short_docstring_tokens: Return whether or not given value is a valid URL .
comment: """Return whether or not given value is a valid URL."""$SEP$# startchar <$SEP$# protocol identifier$SEP$# host name$SEP$# domain name$SEP$# TLD identifier$SEP$# port number$SEP$# resource path$SEP$# query string$SEP$# endchar >