Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@decodist
Last active June 24, 2021 20:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save decodist/150f0edca20533eb3981f974131934db to your computer and use it in GitHub Desktop.
Save decodist/150f0edca20533eb3981f974131934db to your computer and use it in GitHub Desktop.
Regex to find URLs that include one of multiple strings or words, excluding multiple other strings or words
^https:\/\/www.domain.com(?!.*(?:exclude1|exclude2)).*(?:include1|include2|include3).*$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment