agrep

agrep (approximate grep) is an open-source approximate string matching program, developed by Udi Manber and Sun Wu between 1988 and 1991,[1] for use with the Unix operating system. It was later ported to OS/2, DOS, and Windows.

agrep
Developer(s)
Initial release1988 (1988)
Repository
Written inC
Operating system
TypePattern matching
LicenseISC open source license
Websitewww.tgries.de/agrep

It selects the best-suited algorithm for the current query from a variety of the known fastest (built-in) string searching algorithms, including Manber and Wu's bitap algorithm based on Levenshtein distances.

agrep is also the search engine in the indexer program GLIMPSE. agrep is under a free ISC License.[2]

Alternative implementations

A more recent agrep is the command-line tool provided with the TRE regular expression library. TRE agrep is more powerful than Wu-Manber agrep since it allows weights and total costs to be assigned separately to individual groups in the pattern. It can also handle Unicode.[3] Unlike Wu-Manber agrep, TRE agrep is licensed under a 2-clause BSD-like license.

FREJ (Fuzzy Regular Expressions for Java) open-source library provides command-line interface which could be used in the way similar to agrep. Unlike agrep or TRE it could be used for constructing complex substitutions for matched text.[4] However its syntax and matching abilities differs significantly from ones of ordinary regular expressions.

gollark: Is performance a significant issue in shells? I doubt I'd notice as long as it does reasonable stuff in less than 20ms or so
gollark: Pay your landlord in ice cream?
gollark: fish is pretty great, it has excellent line editing and history search.
gollark: I used to have zsh on my servers, but I realized it was actually not better for me in any way.
gollark: I personally utilize fish on all my things.

References

  1. Wu, Sun; Manber, Udi (20–24 January 1992). Agrep -- a fast approximate pattern-matching tool. 1992 Winter USENIX Conference. San Francisco, California. CiteSeerX 10.1.1.89.5424.
  2. WebGlimpse, Glimpse and also AGREP license since 18.09.2014 (ISC License).
  3. "TRE - TRE regexp matching package - Features".
  4. "FREJ - Fuzzy Regular Expressions for Java - Guide and Examples".
This article is issued from Wikipedia. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.