tiny regular expression library
-
- Posts: 9
- Joined: Tue Jan 30, 2007 12:24 pm
- Location: Russia, Pushchino
tiny regular expression library
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]