I have some troubles with writing regular expressions in my React JS application. Suppose that my have to check only paths like "/articles/page-2" or "/articles/page-1" or just "/articles/". What is the right way for doing it correctly?
<Route path={'/articles/(page-)?:pageNumber?'}/>
I've tried following path, but it's not the right path. This route would render it even when URL is "/articles/-3"