Anexia.Gregex 0.0.1

dotnet add package Anexia.Gregex --version 0.0.1                
NuGet\Install-Package Anexia.Gregex -Version 0.0.1                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Anexia.Gregex" Version="0.0.1" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Anexia.Gregex --version 0.0.1                
#r "nuget: Anexia.Gregex, 0.0.1"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// 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

alternate text is missing from this package README image alternate text is missing from this package README image codecov.io

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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • 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 34 2/27/2025