Fare 2.2.2
dotnet add package Fare --version 2.2.2
NuGet\Install-Package Fare -Version 2.2.2
<PackageReference Include="Fare" Version="2.2.2" />
<PackageVersion Include="Fare" Version="2.2.2" />
<PackageReference Include="Fare" />
paket add Fare --version 2.2.2
#r "nuget: Fare, 2.2.2"
#:package Fare@2.2.2
#addin nuget:?package=Fare&version=2.2.2
#tool nuget:?package=Fare&version=2.2.2
Fare - [F]inite [A]utomata and [R]egular [E]xpressions
<p>Project Fare is an effort to bring a <a href="http://en.wikipedia.org/wiki/Deterministic_finite-state_machine" target="_blank" title="Deterministic finite-state machine">DFA</a>/<a href="http://en.wikipedia.org/wiki/Nondeterministic_finite-state_machine" target="_blank" title="Nondeterministic finite-state machine">NFA</a> (finite-state automata) implementation from Java to .NET. There are quite a few implementations available in other languages today. This project aims to fill the gap in .NET.</p> <p>Fare is a .NET port of the well established Java library <a href="http://www.brics.dk/automaton/" target="_blank" title="dk.brics.automaton">dk.brics.automaton</a> with API as close as possible to the corresponding dk.brics.automaton classes.</p>
Is my Regular Expression supported?
Probably yes.
Keep in mind though that Project Fare turns Regular Expressions into Automatons by applying the algorithms of dk.brics.automaton and xeger.
If your Regular Expression isn't supported, it would make sense to debug the C# code but also compare with the results from xeger.
As an alternative, you may use a different pattern or even use a different engine to reverse the Regular Expression into an Automaton. As an example, you can use the Rex engine.
Design changes
- Included a .NET port of [Xeger] (http://code.google.com/p/xeger/), for generating random text from regular expressions. Xeger does <i>not</i> support all valid Java regular expressions. The full set of what is defined here and is summarized at (http://code.google.com/p/xeger/wiki/XegerLimitations).
- Implemented object equality.
- Many getters and setters have been replaced by .NET properties.
- Many foreach loops have been converted to LINQ-expressions.
- Notes from porting Java code in .NET can be found [here] (http://www.nikosbaxevanis.com/bonus-bits/2011/11/notes-from-porting-java-code-to-net.html).
<i>Based on version 1.11-8 of dk.brics.automaton released on September 7, 2011. [ChangeLog] (http://www.brics.dk/automaton/ChangeLog)</i>
NuGet package
Fare is available via NuGet.
Versioning
Fare reached version 1 without following a particular versioning scheme. From version 1 and above, Fare follows Semantic Versioning 2.0.0.
Which projects use Fare?
Fare is used in:
- RandomDataGenerator.Net
- WireMock.Net
- AutoFixture for supporting the RegularExpressionAttribute class.
- EntroTester for generating Regular Expressions that match a given input string.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. 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. 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. net10.0 was computed. 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. |
| .NET Core | netcoreapp1.0 was computed. netcoreapp1.1 was computed. netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard1.1 is compatible. netstandard1.2 was computed. netstandard1.3 was computed. netstandard1.4 was computed. netstandard1.5 was computed. netstandard1.6 was computed. netstandard2.0 is compatible. netstandard2.1 was computed. |
| .NET Framework | net35 is compatible. net40 was computed. net403 was computed. net45 was computed. net451 was computed. net452 was computed. net46 was computed. net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen30 was computed. tizen40 was computed. tizen60 was computed. |
| Universal Windows Platform | uap was computed. uap10.0 was computed. |
| Windows Phone | wpa81 was computed. |
| Windows Store | netcore was computed. netcore45 was computed. netcore451 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETFramework 3.5
- No dependencies.
-
.NETStandard 1.1
- NETStandard.Library (>= 1.6.1)
-
.NETStandard 2.0
- No dependencies.
NuGet packages (57)
Showing the top 5 NuGet packages that depend on Fare:
| Package | Downloads |
|---|---|
|
AutoFixture
AutoFixture makes it easier for developers to do Test-Driven Development by automating non-relevant Test Fixture Setup, allowing the Test Developer to focus on the essentials of each test case. |
|
|
RandomDataGenerator.Net
This is a configurable generator to create random data like Lorum Ipsum Text, Words, Text Patterns, First/Last Names, IP-Addresses, Guids, DateTime and more. |
|
|
Handlebars.Net.Helpers.Xeger
Handlebars.Net.Helpers Xeger (Fare) |
|
|
Rystem
Rystem is a open-source framework to improve the System namespace in .Net |
|
|
Rystem.RepositoryFramework.Infrastructure.InMemory
Rystem.RepositoryFramework allows you to use correctly concepts like repository pattern, CQRS and DDD. You have interfaces for your domains, auto-generated api, auto-generated HttpClient to simplify connection "api to front-end", a functionality for auto-population in memory of your models, a functionality to simulate exceptions and waiting time from external sources to improve your implementation/business test and load test. |
GitHub repositories (15)
Showing the top 15 popular GitHub repositories that depend on Fare:
| Repository | Stars |
|---|---|
|
chocolatey/choco
Chocolatey - the package manager for Windows
|
|
|
dotnetcore/WTM
Use WTM to write .netcore app fast !!!
|
|
|
AutoFixture/AutoFixture
AutoFixture is an open source library for .NET designed to minimize the 'Arrange' phase of your unit tests in order to maximize maintainability. Its primary goal is to allow developers to focus on what is being tested rather than how to setup the test scenario, by making it easier to create object graphs containing test data.
|
|
|
hitchao/Jvedio
Jvedio 是本地视频管理软件,支持扫描本地视频并导入软件,建立视频库, 提取出视频的 唯一识别码,自动分类视频, 添加标签管理视频,使用人工智能识别演员,支持翻译信息, 基于 FFmpeg 截取视频图片,Window 桌面端流畅美观的应用软件
|
|
|
json-everything/json-everything
System.Text.Json-based support for all of your JSON needs.
|
|
|
dnnsoftware/Dnn.Platform
DNN (formerly DotNetNuke) is the leading open source web content management platform (CMS) in the Microsoft ecosystem.
|
|
|
iioter/iotgateway
An industrial IoTGateway with B/S architecture that enables bidirectional communication between industrial devices (southbound connections) and IoT platforms (northbound connections). It supports numerous industrial protocols, and can connect to various IoT cloud platforms.
|
|
|
Implem/Implem.Pleasanter
Pleasanter is a no-code/low-code development platform that runs on .NET. You can quickly create business applications with simple operations.
|
|
|
alexandre-spieser/mongodb-generic-repository
An example of generic repository implementation using the MongoDB C# Sharp 2.0 driver (async)
|
|
|
dotnetjunkie/solidservices
Reference architecture application for .NET that demonstrates how to build highly maintainable web services.
|
|
|
Altinn/altinn-studio
Next generation open source Altinn platform and applications.
|
|
|
abdelkader/vCardEditor
Simple vCard (*.vcf) file Editor.
|
|
|
hmol/LinkCrawler
Find broken links in webpage
|
|
|
elucidsoft/dotnet-stellar-sdk
Stellar API SDK for .NET 6.x
|
|
|
sshushliapin/Sitecore.FakeDb
Unit testing framework for Sitecore.
|
| Version | Downloads | Last Updated |
|---|---|---|
| 2.2.2 | 1,639 | 4/13/2026 |
| 2.2.1 | 35,702,647 | 6/20/2022 |
| 2.2.0 | 19,266,811 | 3/23/2022 |
| 2.1.2 | 10,629,316 | 4/3/2019 |
| 2.1.1 | 224,967,291 | 4/12/2018 |
| 2.1.0 | 23,398 | 4/12/2018 |
| 2.0.0 | 4,636 | 4/9/2018 |
| 1.1.0 | 39,533 | 1/22/2018 |
| 1.0.4 | 33,070 | 12/20/2017 |
| 1.0.3 | 233,989 | 5/5/2016 |
| 1.0.2 | 26,028 | 2/25/2016 |
| 1.0.1 | 8,470 | 11/19/2015 |
| 1.0.0 | 57,900 | 10/17/2013 |