regex allowPaths for the template
Hi Friends,
I want to regex for the template appear in some path. Example: I want the Article template will appear in the path as below when i create page.
content/hlo/en/peppa/xx/yyyy
xx is country code with two letter
yyyy is the city name (not limited letter)
Example some right path:
content/hlo/en/peppa/us/newyork
content/hlo/en/peppa/uk/london
content/hlo/en/peppa/vn/hanoi
I was tried this regex "/content/abc/zh/properties/us(/[^/]+){1,1}$" but I want the us is dynamic. So I tried "/content/abc/en/properties/([A-Z][A-Z])(/[^/]+){1,1}$" it doesn't work.
/content/abc/en/properties/([A-Z][A-Z])(/[^/]+){1,1}$
In this regex [A-Z][A-Z] for two letter ex: us , uk, vn
Please help me how to regex it.
Thank you so much,
BienHV
