Resharp 0.1.34
dotnet add package Resharp --version 0.1.34
NuGet\Install-Package Resharp -Version 0.1.34
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="Resharp" Version="0.1.34" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Resharp" Version="0.1.34" />
<PackageReference Include="Resharp" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Resharp --version 0.1.34
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Resharp, 0.1.34"
#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.
#addin nuget:?package=Resharp&version=0.1.34
#tool nuget:?package=Resharp&version=0.1.34
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
RE# - An unconventional high-performance regex engine supporting intersection and complement
web application and examples: https://ieviev.github.io/resharp-webapp/
Important syntax
_
- any character (same as [\s\S] or [\w\W])~
- complement, ex. "does not contain 1" ⇒~(_*1_*)
&
- intersection, ex. "contains cat and dog and 5-15 chars long" ⇒_*cat_*&_*dog_*&_{5,15}
Basic usage
#r "nuget: resharp"
Resharp.Regex("hello.*world").Matches("hello world!")
Example usage on larger files (in F#)
#r "nuget: resharp"
open System
open System.IO
// building the engine is the most expensive part, reuse this
let engine =
Resharp.Regex("hello.*world", Resharp.ResharpOptions.HighThroughputDefaults)
let chars = System.Text.Encoding.UTF8.GetChars(File.ReadAllBytes("my-file.txt"))
let result =
use spans = engine.MatchSlices(chars)
for span in spans do
let content = span.GetText(chars) // optionally get content
printfn $"found {content} at {span.Index}..{span.Length}"
Product | Versions 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 is compatible. 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net8.0
- FSharp.Core (>= 9.0.100)
-
net9.0
- FSharp.Core (>= 9.0.100)
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.1.34 | 295 | 2/22/2025 |
0.1.33 | 287 | 11/30/2024 |
0.1.25 | 708 | 6/27/2024 |
0.1.24 | 133 | 6/27/2024 |
0.1.17 | 166 | 6/8/2024 |
0.0.23 | 117 | 5/19/2024 |
0.0.22 | 118 | 5/7/2024 |
0.0.20 | 106 | 5/5/2024 |
0.0.19 | 104 | 5/4/2024 |
0.0.18 | 84 | 4/28/2024 |
0.0.7 | 103 | 4/18/2024 |
0.0.6 | 79 | 4/18/2024 |
0.0.5 | 110 | 4/5/2024 |
0.0.4 | 144 | 4/4/2024 |
0.0.3 | 141 | 3/26/2024 |
0.0.2 | 149 | 3/26/2024 |
0.0.1-library | 101 | 12/11/2024 |