Test, validate and match regular expressions
This regex matches specific locale path segments within a URL, explicitly targeting English (/en/), Turkish (/tr/), and Chinese (/zh/). Using the global flag, it identifies all occurrences of these exact directory structures in a string. It is highly useful for web routing, internationalization (i18n), and web scraping tasks to detect or extract language-specific routes from HTTP URLs.