diff --git a/README.md b/README.md index ba4cd34..3e9fcc2 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,5 @@ ![Logo](https://github.com/lxsang/ant-http/raw/master/ant-logo.png) # ant-http +A light and barebone extensible HTTP web server (HTTPs will be available soon in the next release). + +A working demo of the webserver using LUA as server side script available at: [http://os.lxsang.me](http://os.lxsang.me) using username: demo and password: demo diff --git a/plugins/utils.c b/plugins/utils.c index 7b42494..c6b7a6e 100644 --- a/plugins/utils.c +++ b/plugins/utils.c @@ -199,6 +199,13 @@ int match_float(const char* search) { return regex_match("^[+-]?[0-9]*\\.[0-9]+$",search); } +/* +regmatch_t matches[MAX_MATCHES]; +if (regexec(&exp, sz, MAX_MATCHES, matches, 0) == 0) { + memcpy(buff, sz + matches[1].rm_so, matches[1].rm_eo - matches[1].rm_so); + printf("group1: %s\n", buff); +} +*/ int regex_match(const char* expr,const char* search) { regex_t regex;