HF RL Explorer

Task: Fix Nginx Location Regex to Match URLs with Parentheses

Task: Fix Nginx Location Regex to Match URLs with Parentheses: a task in Terminal-Lego-15k (Harbor dataset). In Nginx configuration, when using regex-based location blocks with named capture groups, parentheses in the URL path can conflict with regex grouping syntax. The challenge is to write a…

The task

In Nginx configuration, when using regex-based `location` blocks with named capture groups, parentheses in the URL path can conflict with regex grouping syntax. The challenge is to write a location regex that correctly captures URL path segments that contain literal parentheses `(` and `)`.

Part of PrimeIntellect/Terminal-Lego-15k.