Page 1 of 1

tiny regular expression library

Posted: Wed Jan 31, 2007 11:10 am
by Danila Master
T-Rex is a minimalistic regular expression library written in ANSI C. I wrote it because I couldn't find any free regular expression library that wasn't huge and bloated, while most of the time I need just basic functionalities. T-Rex is implemented in 2 files(a C file of around 500 lines plus a header); supports the following POSIX expressions: ?,*,+,^,$,.,[a-b],() plus the perl style greedy closures {n} . It can be conditionally compiled to support 8-bits or 16-bits character strings. A simple C++ wrapper class is included in the source distribution. [released under zlib/pnglib licence]