tre

POSIX-compliant regex library with support for approximate matching

brewmacoslinux
Try with needOr install directly
Source

About

Lightweight, POSIX-compliant regular expression (regex) library

Commands

tre-agrep

Examples

Search for exact matches of a pattern in a file$ tre-agrep 'pattern' filename.txt
Find approximate matches allowing up to 2 errors (insertions, deletions, substitutions)$ tre-agrep -2 'searchterm' filename.txt
Case-insensitive search with approximate matching$ tre-agrep -i -1 'word' filename.txt