Excluding urls from "url contains" site location

If you would like to perform an action on specific pages that contain a certain url pattern but exclude it from pages that do not contain another pattern use the "Url contains" site location and the "Current url" segment. The "Current url" segment supports a "does not include" option

url_does_not_contain.png