Skip to content

LarrysGIT/CompareFuzzyStrings

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

Credit to

Usage

>
> . .\CompareFuzzyStrings.ps1
>
> New-Object CompareFuzzyStrings "868d6056869b","a8199d1402dc",$false
String1            : 868d6056869b
String2            : a8199d1402dc
Description        : The strings are 12 edits away
MinimumEditsNeeded : 12
Ratio              : 0.25

> New-Object CompareFuzzyStrings "larry.song","laryr.song",$false
String1            : larry.song
String2            : laryr.song
Description        : The strings are 2 edits away
MinimumEditsNeeded : 2
Ratio              : 0.9

> # Ignore case = $true
> New-Object CompareFuzzyStrings "Larry","larry",$true
String1            : Larry
String2            : larry
Description        : The strings are 0 edits away
MinimumEditsNeeded : 0
Ratio              : 1

> # Ignore case = $false
> New-Object CompareFuzzyStrings "Larry","larry",$false
String1            : Larry
String2            : larry
Description        : The strings are 1 edits away
MinimumEditsNeeded : 1
Ratio              : 0.8

About

A dummy powershell implementation to match fuzzy strings

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors