Matching Wildcards in JavaScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
FastWildCompare.css
FastWildCompare.html
FastWildCompare.js
FastWildCompareForm.js
FastWildCompareTest.css
FastWildCompareTest.html
FastWildCompareTest.js
FastWildCompare_min.js
LICENSE
README.md
RegExWildCompare.css
RegExWildCompare.html
RegExWildCompare.js
RegExWildCompareForm.js
RegExWildCompare_min.js
index.html

README.md

MatchingWildcardsInJavaScript

Matching Wildcards in JavaScript®

This file set includes a routine for matching wildcards in JavaScript (FastWildCompare.js), ported from the native code implementation here: http://www.developforperformance.com/MatchingWildcards_AnImprovedAlgorithmForBigData.html

It also includes a routine for matching wildcards based on JavaScript's RegExp() regular expression methods, based on an extension of Don McCurdy's implementation here: https://gist.github.com/donmccurdy/6d073ce2c6f3951312dfa45da14a420f

Also included are HTML/CSS/JavaScript forms for interacting with the above routines (see FastWildCompareForm.js and RegExWildCompareForm,js, respectively), along with an HTML/CSS/JavaScript test set (FastWildCompareTest.js) for correctness and performance comparison of these or similar routines. A description of the implementation strategies, a discussion of performance findings, and thoughts about how to choose one routine over another appear here: http://www.developforperformance.com/MatchingWildcardsInJavaScript.html