C语言开源正则表达式库-----PCRE
来源:互联网 发布:linux mkdir命令 编辑:程序博客网 时间:2024/06/16 06:21
#include <pcre.h>
int pcre_exec(const pcre *code, const pcre_extra *extra, const char *subject, int length, int startoffset, int options, int *ovector, int ovecsize);
DESCRIPTIONThis function matches a compiled regular expression against a given subject string, using a matching algorithm that is similar to Perl's. It returns offsets to captured substrings. Its arguments are:
code Points to the compiled pattern extra Points to an associated pcre[16|32]_extra structure, or is NULL subject Points to the subject string length Length of the subject string, in bytes startoffset Offset in bytes in the subject at which to start matching options Option bits ovector Points to a vector of ints for result offsets ovecsize Number of elements in the vector (a multiple of 3)
上述的API介绍为Pcre官网的介绍,大致翻译为
该函数从给予的Subject中匹配一个编译后的正则表达式,使用和Perl相似的匹配算法。该函数返回匹配的子串的偏移量
- C语言开源正则表达式库-----PCRE
- PCRE-C语言正则表达式
- linux下C语言的一个正则表达式库:pcre
- c语言正则表达式库pcre使用例子
- C语言中利用PCRE正则表达式
- C语言的一个正则表达式pcre
- C/C++高效的正则表达式库PCRE/PCRE++
- linux c 语言中使用正则表达式pcre
- 在C语言中利用PCRE实现正则表达式
- 在C语言中利用PCRE实现正则表达式
- 在C语言中利用PCRE实现正则表达式
- 在C语言中利用PCRE实现正则表达式
- 在C语言中利用PCRE实现正则表达式
- 在C语言中利用PCRE实现正则表达式
- 【转】C/C++中的正则表达式库GNU Regex Library&PCRE/PCRE++
- C/C++中的正则表达式库GNU Regex Library&PCRE/PCRE++
- 深入浅出C/C++中的正则表达式库(三)——PCRE, PCRE++
- C/C++中的正则表达式库GNU Regex Library&PCRE/PCRE++
- 杂
- Linux进程地址空间详解 转载
- USB协议架构及驱动架构
- Android的Task和Activity相关
- 展讯6820的代码
- C语言开源正则表达式库-----PCRE
- Android 4.2 Input 流程分析
- linux内核input子系统解析
- 【C# + Argis Engine】地图上绘制圆形并且实时的显示半径源码
- 线段树单点更新
- 单例模式之生产实践
- TCP和UDP网络通讯的区别及实现方式
- Android Binder 之奇幻國度
- socket和http间的区别