regexhelper 1.0.0
dotnet add package regexhelper --version 1.0.0
NuGet\Install-Package regexhelper -Version 1.0.0
<PackageReference Include="regexhelper" Version="1.0.0" />
paket add regexhelper --version 1.0.0
#r "nuget: regexhelper, 1.0.0"
// Install regexhelper as a Cake Addin #addin nuget:?package=regexhelper&version=1.0.0 // Install regexhelper as a Cake Tool #tool nuget:?package=regexhelper&version=1.0.0
RegexHelper
RegexHelper is a C# library that helps developers create regular expressions (RegEx) with ease. It provides a clear and intuitive syntax for building RegEx patterns, along with preconfigured RegEx codes for commonly used scenarios.
Features
- Fluent RegEx Builder: Use the
RegexBuilder
class to create RegEx patterns in a simple and readable manner. - Preconfigured RegEx Codes: The
RegExPrepared
class contains a collection of predefined RegEx codes for typical use cases. - Easy Installation: The project is based on .NET7 (C# 11) and can be installed via NuGet.
- Cross-Platform: The library is platform-independent and can be used in .NET applications on various operating systems.
Usage
Use the RegexBuilder
class to create RegEx patterns. Here's a simple example:
var regex = new RegExBuilder()
.Start()
.Text("Hello")
.WhiteSpace()
.OneOrMoreOfLastExpression()
.Text("World")
.End()
.ToRegex();
string input = "Hello World";
bool isMatch = regex.IsMatch(input);
Console.WriteLine($"Input: {input}");
Console.WriteLine($"Is Match: {isMatch}");
Console.ReadKey(true);
For more examples and detailed information, please refer to the documentation.
License
This project is licensed under the MIT License. For more information, see the license file.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. 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. |
-
net7.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 |
---|---|---|
1.0.0 | 173 | 7/4/2023 |
First creation of this package