- 授权协议: ZLIB
- 开发语言: C/C++ Python
- 操作系统: 跨平台
- 软件首页: https://github.com/fy0/tinyre
- 软件文档: https://github.com/fy0/tinyre
软件介绍
小型的正则表达式引擎。
与Python的正则引擎语法基本兼容。
使用c99编写,cmake构建,没有额外依赖。
开源协议:ZLIB
#include "tinyre.h"
tre_Pattern* pattern;
tre_Match* match;
pattern = tre_compile("^(bb)*a", 0);
match = tre_match(pattern, "bbbbabc", 0);
// Group 0: bbbba
// Group 1: bb
