Meziantou.Framework.Globbing
5.0.5
Prefix Reserved
dotnet add package Meziantou.Framework.Globbing --version 5.0.5
NuGet\Install-Package Meziantou.Framework.Globbing -Version 5.0.5
<PackageReference Include="Meziantou.Framework.Globbing" Version="5.0.5" />
<PackageVersion Include="Meziantou.Framework.Globbing" Version="5.0.5" />
<PackageReference Include="Meziantou.Framework.Globbing" />
paket add Meziantou.Framework.Globbing --version 5.0.5
#r "nuget: Meziantou.Framework.Globbing, 5.0.5"
#:package Meziantou.Framework.Globbing@5.0.5
#addin nuget:?package=Meziantou.Framework.Globbing&version=5.0.5
#tool nuget:?package=Meziantou.Framework.Globbing&version=5.0.5
Meziantou.Framework.Globbing
Supported glob features
*matches any number of characters including none?matches a single character[abc]matches one character given in the bracket[!abc]matches any character not in the brackets[a-z]matches one character from the range given in the bracket[!a-z]matches one character not in the range given in the bracket{abc,123}matches one of the literals**matches zero or more directories
Dialects
| Dialect | Follows | Notes |
|---|---|---|
Standard |
the syntax above | Wildcards skip names starting with a dot unless GlobOptions.MatchLeadingDot is set |
Git |
gitignore(5) and git's wildmatch | [^a], [[:alpha:]], \ escapes in brackets; {} are literal; use GlobCollection.ParseGitIgnore for a whole .gitignore file |
MSBuild |
MSBuild item specs | / and \ are separators, %XX escapes, *.* matches every file, a leading .. is kept |
Posix |
fnmatch(3) without flags |
Matches a plain string: * and ? match /; [[:alpha:]], [[=a=]], [[.-.]], [^a] |
PosixPath |
fnmatch(3) with FNM_PATHNAME |
Same syntax as Posix, but a / is only matched by a / |
The Git, MSBuild, Posix and PosixPath dialects are tested against corpora produced by git, MSBuild and
fnmatch. Characters are compared as UTF-16 code units, whereas git compares the bytes of their UTF-8 encoding.
Usage
Install the NuGet package Meziantou.Framework.Globbing (NuGet)
dotnet package add Meziantou.Framework.Globbing
IsMatchtests whether a file matches the glob patternGlob glob = Glob.Parse("src/**/*.txt", GlobDialect.Standard, GlobOptions.IgnoreCase); glob.IsMatch("src/abc.txt");Enumerate files that match a glob pattern
// Enumerate files that match the glob in the folder rootDirectory Glob glob = Glob.Parse("src/**/*.txt", GlobDialect.Standard); foreach(var file in glob.EnumerateFiles("rootDirectory")) { Console.WriteLine(file); }
Addition resources
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. net11.0 is compatible. |
-
net10.0
- No dependencies.
-
net11.0
- No dependencies.
NuGet packages (3)
Showing the top 3 NuGet packages that depend on Meziantou.Framework.Globbing:
| Package | Downloads |
|---|---|
|
TopModel.Utils
Utilitaires TopModel. |
|
|
Meziantou.Framework.DependencyScanning
Find dependencies in source files. Support multiple package managers such as NuGet, npm, Docker, PyPi, and so on |
|
|
Tsinswreng.CsSh
A cross-platform, NativeAOT-compatible C# shell infrastructure library for build, release, synchronization, and toolchain scripts. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 5.0.5 | 1,297 | 9/13/2026 |
| 5.0.4 | 285 | 9/11/2026 |
| 5.0.3 | 356 | 9/6/2026 |
| 5.0.2 | 282 | 9/3/2026 |
| 5.0.1 | 576 | 8/30/2026 |
| 5.0.0 | 1,687 | 8/12/2026 |
| 4.0.0 | 1,900 | 7/5/2026 |
| 3.0.5 | 1,135 | 6/13/2026 |
| 3.0.4 | 3,487 | 5/31/2026 |
| 3.0.3 | 423 | 5/23/2026 |
| 3.0.2 | 601 | 5/14/2026 |
| 3.0.1 | 234 | 5/11/2026 |
| 3.0.0 | 281 | 5/6/2026 |
| 2.1.2 | 4,971 | 4/25/2026 |
| 2.1.1 | 7,423 | 3/22/2026 |
| 2.1.0 | 8,981 | 1/31/2026 |
| 2.0.3 | 1,054 | 1/25/2026 |
| 2.0.2 | 9,211 | 11/16/2025 |
| 2.0.1 | 7,295 | 10/19/2025 |
| 2.0.0 | 469 | 10/7/2025 |