mirror of
https://github.com/lxsang/ant-http
synced 2024-12-26 00:38:21 +01:00
merge
This commit is contained in:
commit
01c32d964e
@ -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
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user