tre (regular expression matching library) TRE is a lightweight, robust, and efficient POSIX compliant regex matching library with some exciting features such as approximate (fuzzy) matching. This includes the tre C library, python3 library, and the command-line tool "agrep".