How to use regex to exclude a url path? <p>I'm working on a process where I have to exclude a specific url path.</p> <pre><code>--exclude "/faq" </code></pre> <p>The above will exclude example.com/faq but not the other paths such as example.com/questions, example.com/needed, example.com/answers ....</p> <p>What I want is:-</p> <p>example.com/cricket-or-football/question-3695225 --> only this (instead of) example.com/cricket-or-football/question-3695225/3699293/3463987 -----> has to be excluded.</p> <p>How can I do this in regular expression?</p> <p>I tried:-</p> <pre><code>--exclude "/.+/question-[0-9]/.+" </code></pre> <p>But its not working!</p>