Test, validate and match regular expressions
This regular expression matches any string that includes the substring "/cat/" while ensuring it does not contain the substring "/prod/". It uses a negative lookahead at the start to search the entire string for the forbidden "/prod/" path before proceeding. It is highly useful for filtering URLs or file paths where you need to target specific categories but exclude certain environments, like production.