SqlLikeToRegex 1.0.1
dotnet add package SqlLikeToRegex --version 1.0.1
NuGet\Install-Package SqlLikeToRegex -Version 1.0.1
<PackageReference Include="SqlLikeToRegex" Version="1.0.1" />
paket add SqlLikeToRegex --version 1.0.1
#r "nuget: SqlLikeToRegex, 1.0.1"
// Install SqlLikeToRegex as a Cake Addin #addin nuget:?package=SqlLikeToRegex&version=1.0.1 // Install SqlLikeToRegex as a Cake Tool #tool nuget:?package=SqlLikeToRegex&version=1.0.1
Sql Like to Regex
This library converts SQL LIKE expressions to regular expressions.
It is based on a C# translation of the Java code from Damon Sutherland at https://codereview.stackexchange.com/a/207486/274158
Usage
Call the static method SqlLikeTranspiler.ToRegEx
to convert an SQL
LIKE
expression to a regular expression. The function returns a string
(not a Regex
object).
Example
var result = SqlLikeTranspiler.ToRegEx("%abc[%]%")
The expected result is ^.*abc[%].*$
Source
The source for this library is on GitHub at https://github.com/paviad/sql-like-to-regex
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.1 | 178 | 6/16/2023 |