Anexia.Gregex
0.0.1
dotnet add package Anexia.Gregex --version 0.0.1
NuGet\Install-Package Anexia.Gregex -Version 0.0.1
<PackageReference Include="Anexia.Gregex" Version="0.0.1" />
paket add Anexia.Gregex --version 0.0.1
#r "nuget: Anexia.Gregex, 0.0.1"
// Install Anexia.Gregex as a Cake Addin #addin nuget:?package=Anexia.Gregex&version=0.0.1 // Install Anexia.Gregex as a Cake Tool #tool nuget:?package=Anexia.Gregex&version=0.0.1
Anexia.Gregex
Generalized regular expressions for sequences (IEnumerables, Lists, Arrays).
Goals
Provide an API to match lists similar to how you can match regexes against strings.
Usage
The main entry point is the Gregex
class it allows you to construct expressions. You can use the
Matcher class to match these expressions against instances of IEnumerable.
Example:
using Anexia.Gregex;
var testList = "FooBarFooBarFoo".ToCharArray();
var gregex = Gregex.Is('o').Times(2);
var matcher = new Matcher<char>();
var matches = matcher.FindMatches(gregex, testList).ToArray();
Console.WriteLine($"Found: {matches.Length} matches.");
Console.WriteLine(string.Join("\n", matches.AsEnumerable()));
You can find more detailed examples in the Examples Folder.
Contributing
Contributions are welcomed! Read the Contributing Guide for more information.
Licensing
See LICENSE for more information.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. |
-
net8.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
0.0.1 | 0 | 2/27/2025 |