Skip to content

scherenhaenden/FareCore

Repository files navigation

README.md

FareCore: Regular Expression Power for .NET Core 6+

[Insert badge for Build, NuGet package, etc. if you have them set up]

FareCore is a .NET Core 6+ optimized fork of the popular Fare library, itself a port of the Java libraries dk.brics.automaton and xeger. This project was created to deliver the power of regular expression generation and manipulation specifically to modern .NET Core applications.

Key Features

  • String Generation from Regular Expressions: Effortlessly generate random strings that flawlessly match predefined regular expression patterns.

  • Finite Automata (NFA/DFA): Construct and manipulate finite automata, ideal for complex pattern-matching tasks.

  • Modern .NET Core Focus: Meticulously tailored code optimizations for seamless integration into .NET Core 6 and newer projects.

Why FareCore?

  • .NET Core Specialization: FareCore's codebase is streamlined for efficiency and compatibility within the .NET Core 6+ ecosystem.

  • Performance and Agility: Experience potential performance gains and greater flexibility due to targeted optimizations specifically for .NET Core.

  • Active Development (Depending on your plans): Anticipate ongoing maintenance, bug fixes, and potential additional features aligned with the .NET Core roadmap.

Getting Started

Installation

  1. dotnet add package FareCore Verwende den Code mit Vorsicht.content_copy

Basic Usage

C#

Plain textANTLR4BashCC#CSSCoffeeScriptCMakeDartDjangoDockerEJSErlangGitGoGraphQLGroovyHTMLJavaJavaScriptJSONJSXKotlinLaTeXLessLuaMakefileMarkdownMATLABMarkupObjective-CPerlPHPPowerShell.propertiesProtocol BuffersPythonRRubySass (Sass)Sass (Scss)SchemeSQLShellSwiftSVGTSXTypeScriptWebAssemblyYAMLXMLusing FareCore; // Generate a string matching a simple email pattern string email = new Xeger(@"someone@example.com").Generate(); // Build an automaton for URL Matching Automaton urlMatcher = Regex.ToAutomaton(@"https?://[^\s/$.?#].[^\s]*"); // Test if a string matches the pattern bool isValidUrl = urlMatcher.Run("https://www.google.com");

Verwende den Code mit Vorsicht.content_copy

Comparison with Original Fare Library

FareCore stems from the established Fare library. Key differences include:

  • .NET Core Emphasis: FareCore is meticulously built and optimized for .NET Core 6 and onward.

  • Potential Performance Enhancements: FareCore's adjustments might yield performance improvements in .NET Core environments, though results might vary on a case-by-case basis.

  • Community and Maintenance: FareCore establishes a distinct path potentially focusing on features and upkeep suited to the .NET Core world.

Contributing

We welcome contributions to FareCore! Check our CONTRIBUTING.md: CONTRIBUTING.md for guidelines.

License

FareCore is licensed under the MIT License (See the LICENSE: LICENSE file for details).

Let me know if you'd like any adjustments, extra sections, or have specific things you'd like emphasized!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages