SimpleStateMachine.StructuralSearch 1.0.0.2

dotnet add package SimpleStateMachine.StructuralSearch --version 1.0.0.2                
NuGet\Install-Package SimpleStateMachine.StructuralSearch -Version 1.0.0.2                
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="SimpleStateMachine.StructuralSearch" Version="1.0.0.2" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add SimpleStateMachine.StructuralSearch --version 1.0.0.2                
#r "nuget: SimpleStateMachine.StructuralSearch, 1.0.0.2"                
#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.
// Install SimpleStateMachine.StructuralSearch as a Cake Addin
#addin nuget:?package=SimpleStateMachine.StructuralSearch&version=1.0.0.2

// Install SimpleStateMachine.StructuralSearch as a Cake Tool
#tool nuget:?package=SimpleStateMachine.StructuralSearch&version=1.0.0.2                

NuGet Pre Release alternate text is missing from this package README image NuGet Downloads alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image

SimpleStateMachine.StructuralSearch

StructuralSearch - An easy-to-use library for structural search and replace in text in any programming language.

Give a Star! ⭐

If you like or are using this project please give it a star. Thanks!

Why SimpleStateMachine?

Forget about regular expressions and enjoy searching

  1. Describe search pattern:
// Just text and placeholders
var template = StructuralSearch.ParseFindTemplate("void $methodName$($params$)")
  1. Find it in any text:
// All the matches are already here
var results = template.ParseString("void MyMethodName(int value1, double value2)"
  1. Enjoy the search results
// The found text part
parseResult.Match.Value // void MyMethodName(int value1, double value2)

// The exact coordinates of the match
parseResult.Match.Column // Start 1, End 45
parseResult.Match.Line // Start 1, End 1
parseResult.Match.Offset // Start 0, End 44
    
// Placeholders
parseResult.Placeholders // { "methodName" : "MyMethodName" }, { "params": "int value1, double value2" }
    
// The exact coordinates of each placeceholdder
parseResult.Placeholders[0].Column // Start 6, End 18
parseResult.Placeholders[0].Line // Start 1, End 1
parseResult.Placeholders[0].Offset // Start 5, End 17

Getting Started📂

Install from Nuget:

 Install-Package SimpleStateMachine.StructuralSearch

Documentation📄

Documentation here: wiki

FAQ❔

If you think you have found a bug, create a github issue.

But if you just have questions about how to use:

License📑

Copyright (c) SimpleStateMachine

Licensed under the MIT license.

Product 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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.2 103 10/3/2024
1.0.0.1 143 3/7/2024
1.0.0 210 9/4/2022