There is such a pattern :
category\/(.+?)\/(:?size\/(.+?)\/)(?:page\/(.+?)\/?)? There are 3 groups of entries: category/(...)/ , size/(...)/ and optional page/(...)/ . When you try to make an optional group with size substitution ? after brackets - everything breaks down. Those. This pattern no longer works:
category\/(.+?)\/(?:size\/(.+?)\/)?(?:page\/(.+?)\/?)? As a result, I would like the category value to always be recorded, and size and page only if they exist. What am I doing wrong?
catalog/istochniki-pitanija? - Wiktor Stribiżew