πŸ”
πŸ”€

Test URL Routing Patterns

Write and test regex patterns for URL routing rules in Express, Nginx, and Apache.

Hakuna kuingia kinachohitajika
//g
Flags:
Examples:

Test text

Matches

The quick brown fox jumps over the lazy dog. Pack my box with five dozen liquor jugs.Enter a pattern above to see matches highlighted here.

Routing tips

πŸ”€

Express.js route patterns like /users/:id support regex-style matching. Test your pattern against sample URLs before adding to your router.

βš™οΈ

Nginx rewrite rules use PCRE regex. Paste sample request URIs into the test text and refine your pattern until all expected paths match.

πŸ’‘

Use ^ and $ anchors to ensure your pattern matches the full path, not just a substring. Without anchors, /api matches /some/api/endpoint.

πŸ”

Capture groups in URL patterns extract dynamic segments. (/users/(\d+)) captures the user ID in group 1 β€” visible in the match details panel.

Jinsi Inavyofanya Kazi

1
Ingiza
Enter your data into the tool above. Everything stays local to your browser.
2
Chakata
The tool processes your data instantly in your browser using JavaScript. No server, no waiting.
3
Pakua
Get your result instantly. Nothing is stored after you leave the page β€” complete privacy.

Kwa nini utumie yetu?

βœ“Bure kabisa β€” bila gharama zilizofichwa, kamwe
βœ“Hakuna akaunti, barua pepe, au kuingia kinachohitajika
βœ“Faili hazitoki kwenye kifaa chako kamwe
βœ“Hakuna kikwazo cha ukubwa wa faili kabisa
βœ“Hakuna alama za maji kwenye matokeo yoyote

Also check out…

Maswali Yanayoulizwa Mara Kwa Mara