A minimal, portable regular expression engine for C/C++ with a tiny footprint.
SLRE (Super Light Regular Expression) is a minimal regular expression engine specifically designed for C and C++ applications in resource-constrained environments. It provides essential pattern matching functionality while maintaining an extremely small code footprint, making it suitable for embedded systems, IoT devices, and other memory-limited scenarios where traditional regex libraries are too heavy.
C/C++ developers working on embedded systems, IoT devices, firmware, or any application where memory and binary size are critical constraints.
Developers choose SLRE when they need reliable regex functionality without the overhead of full-featured libraries like PCRE or Boost.Regex, particularly in environments where every kilobyte of memory matters.
Super Light Regexp engine for C/C++
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Compiled library size under 10KB, making it ideal for embedded systems and IoT devices where flash memory is scarce.
Written in ANSI C with no external dependencies, ensuring it runs on any platform from microcontrollers to servers.
Provides easy-to-use functions like slre_match() for pattern matching and capturing, reducing integration overhead compared to complex regex engines.
Available under GPLv2 and commercial licenses, offering options for both open-source and proprietary deployments without vendor lock-in.
Focuses on essential syntax, missing advanced features like lookahead, lookbehind, and comprehensive Unicode support, which restricts complex pattern matching.
As a niche library, it lacks extensive documentation, tutorials, and community support compared to larger regex engines like PCRE or Boost.Regex.
GPLv2 can impose obligations on commercial use, requiring careful license management or additional costs for commercial licenses, as noted in the README.