Skip to content

Instantly share code, notes, and snippets.

@dttad
Created January 13, 2023 16:54
Show Gist options
  • Save dttad/6edf76d054c98dde67c4471d4cc57abc to your computer and use it in GitHub Desktop.
Save dttad/6edf76d054c98dde67c4471d4cc57abc to your computer and use it in GitHub Desktop.
URL Regex in Python
__URL_REGEX = re.compile(r'^https?://[^\s/$.?#].[^\s]*$', re.IGNORECASE)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment