<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/url-pattern-matching-in-net-eoobxiadc" -->

---
title: URL Pattern Matching in .NET | daily.dev
description: The Meziantou.Framework.Uri NuGet package brings the WHATWG URL Pattern API specification to .NET, enabling standardized URL pattern matching with named...
canonical: https://daily.dev/posts/url-pattern-matching-in-net-eoobxiadc
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: URL Pattern Matching in .NET | daily.dev
og:description: The Meziantou.Framework.Uri NuGet package brings the WHATWG URL Pattern API specification to .NET, enabling standardized URL pattern matching with named...
og:url: https://daily.dev/posts/url-pattern-matching-in-net-eoobxiadc
og:image: https://api.daily.dev/og/posts/EOOBxiADc.png
og:image:alt: URL Pattern Matching in .NET
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# URL Pattern Matching in .NET

**[Meziantou](https://daily.dev/sources/meziantou)** · 2 min read · 29 upvotes · 4 comments

## Summary

The Meziantou.Framework.Uri NuGet package brings the WHATWG URL Pattern API specification to .NET, enabling standardized URL pattern matching with named parameters, wildcards, optional segments, case-insensitive options, and pattern collections. The UrlPattern class supports both object-based and string-based pattern creation, making it useful for routing, security policies, and content filtering without resorting to custom regex.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.meziantou.net/url-pattern-matching-in-dotnet.htm>

## Community discussion

Top comments from developers on daily.dev.

**@guglielmorizzo** · 2 upvotes

> Cool, but what do I need it for?

**@ashishtripathi6** · 0 upvotes

> how ti's work

**@jeanclaudegeagea** · 0 upvotes

> Great but why is it used?

## Similar posts on daily.dev

- [Using JsonPath with System.Text.Json to query JSON in .NET](https://daily.dev/posts/using-jsonpath-with-system-text-json-to-query-json-in-net-pd3liujm6) · Meziantou · 10 upvotes · 1 comments
- [.NET 10 Networking Improvements](https://daily.dev/posts/net-10-networking-improvements-t8q7f41ir) · .NET Blog · 29 upvotes · 0 comments
- [When Design Patterns Become Rituals](https://daily.dev/posts/when-design-patterns-become-rituals-cnr1hrkja) · We Are .NET · 78 upvotes · 9 comments

---

Tags: [#.net](https://daily.dev/tags/.net)

[View this post on daily.dev](https://daily.dev/posts/url-pattern-matching-in-net-eoobxiadc)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"URL Pattern Matching in .NET","url":"https://daily.dev/posts/url-pattern-matching-in-net-eoobxiadc","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/url-pattern-matching-in-net-eoobxiadc"},"datePublished":"2026-04-20T13:18:56.430Z","dateModified":"2026-04-20T13:21:23.444Z","description":"The Meziantou.Framework.Uri NuGet package brings the WHATWG URL Pattern API specification to .NET, enabling standardized URL pattern matching with named...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/426eacc8651a89c3b9cbe2730a3a2a6a?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/426eacc8651a89c3b9cbe2730a3a2a6a?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Meziantou","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Meziantou","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/1bdfdd5349654b08ab6fa3f1ac38192c","url":"https://daily.dev/sources/meziantou"},"commentCount":4,"discussionUrl":"https://daily.dev/posts/url-pattern-matching-in-net-eoobxiadc","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":29},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":4}],"keywords":".net","timeRequired":"PT2M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Meziantou","item":"https://daily.dev/sources/meziantou"},{"@type":"ListItem","position":3,"name":"URL Pattern Matching in .NET"}]}
{"@context":"https://schema.org","@type":"WebPage","@id":"https://daily.dev/posts/url-pattern-matching-in-net-eoobxiadc","comment":[{"@type":"Comment","text":"Cool, but what do I need it for?","datePublished":"2026-04-21T07:03:31.030Z","url":"https://daily.dev/posts/EOOBxiADc#c-w3Y2w9nt0","author":{"@type":"Person","name":"Guglielmo Rizzo","url":"https://daily.dev/guglielmorizzo","image":"https://media.daily.dev/image/upload/s--qfk7aLrU--/f_auto/v1779708510/avatars/avatar_Mi3xDhiIYMwwEOmBaEzYQ?_a=BAMAMiWQ0"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":2}},{"@type":"Comment","text":"how ti’s work","datePublished":"2026-04-23T08:27:20.725Z","url":"https://daily.dev/posts/EOOBxiADc#c-pZEKXyBFo","author":{"@type":"Person","name":"Ashish Tripathi","url":"https://daily.dev/ashishtripathi6","image":"https://lh3.googleusercontent.com/a/ACg8ocLJSywUg132ZsB_s0CQgHMzU6HxZo1yzHFo_wrx_25kuvP86w=s96-c"}},{"@type":"Comment","text":"Great but why is it used?","datePublished":"2026-04-26T10:40:19.567Z","url":"https://daily.dev/posts/EOOBxiADc#c-FqhW8NFxM","author":{"@type":"Person","name":"Jean Claude Geagea","url":"https://daily.dev/jeanclaudegeagea","image":"https://media.daily.dev/image/upload/s--vZMcZq8g--/f_auto/v1755770441/avatars/avatar_dIw3L0c5TxJlwuB4CmcR0?_a=BAMClqZW0"}}]}
```

