regexec

来源:互联网 发布:南京网络推广jssdky 编辑:程序博客网 时间:2024/06/06 21:37
http://pubs.opengroup.org/onlinepubs/009695399/functions/regcomp.html

http://linux.die.net/man/3/regexec

PS 以上两个链接才是王道,国内的资料,包括本文最后保存的链接同样是错误的。

Name

regcomp, regexec, regerror, regfree - POSIX regex functions

Synopsis

#include <sys/types.h>#include <regex.h>int regcomp(regex_t *preg, const char *regex, int cflags);int regexec(const regex_t *preg, const char *string, size_t nmatch, regmatch_t pmatch[], int eflags);size_t regerror(int errcode, const regex_t *preg, char *errbuf, size_t errbuf_size);void regfree(regex_t *preg);

http://blog.sina.com.cn/s/blog_4cbd26cf0100cryc.html

原创粉丝点击