/httpd/server/ |
H A D | util_expr_parse.y | 52 %token <cpVal> T_REGEX "regex" 53 %token <cpVal> T_REGEX_I "case-indendent regex" 54 %token <num> T_REGEX_BACKREF "regex back reference" 69 %token T_OP_REG "regex match" 70 %token T_OP_NRE "regex non-match" 93 %type <exVal> regex 142 | word T_OP_REG regex { $$ = ap_expr_make(op_REG, $1, $3, ctx); } 143 | word T_OP_NRE regex { $$ = ap_expr_make(op_NRE, $1, $3, ctx); } 177 regex : T_REGEX { label 178 ap_regex_t *regex; [all...] |
H A D | util_expr_eval.c | 313 const ap_regex_t *regex = e2->node_arg1; local 318 * we only set them if there are capturing parens in the regex. 320 if (regex->re_nsub > 0) { 321 result = (0 == ap_regexec(regex, word, ctx->re_nmatch, 326 result = (0 == ap_regexec(regex, word, 0, NULL, 0));
|
H A D | util_expr_parse.c | 537 "\"number\"", "\"identifier\"", "\"cstring\"", "\"regex\"", 538 "\"case-indendent regex\"", "\"regex back reference\"", 544 "\"regex match\"", "\"regex non-match\"", "\"contained in\"", 552 "regex", "backref", "lstfunccall", "strfunccall", YY_NULL 1794 ap_regex_t *regex; local 1795 if ((regex = ap_pregcomp(ctx->pool, (yyvsp[(1) - (1)].cpVal), 1800 (yyval.exVal) = ap_expr_make(op_Regex, regex, NULL, ctx); 1808 ap_regex_t *regex; local [all...] |
H A D | util_expr_scan.c | 635 #define regex 4 macro 1254 BEGIN(regex); variable 1263 BEGIN(regex); variable 1539 case YY_STATE_EOF(regex):
|
/httpd/modules/mappers/ |
H A D | mod_alias.c | 238 ap_regex_t *regex = NULL; local 330 regex = ap_pregcomp(cmd->pool, fake, AP_REG_EXTENDED); 331 if (regex == NULL) 356 new->regexp = regex;
|
/httpd/modules/metadata/ |
H A D | mod_setenvif.c | 20 * attributes against regex strings 33 * SetEnvIf name regex var ... 36 * special values (see below). 'name' may be a regex when it is used 39 * the regex argument. If this is a simple string, a simple sub-string 108 ap_regex_t *pnamereg; /* compiled header name regex */ 109 char *regex; /* regex to match against */ member in struct:__anon267 110 ap_regex_t *preg; /* compiled regex */ 111 const apr_strmatch_pattern *pattern; /* non-regex pattern to match */ 285 char *regex; local [all...] |
H A D | mod_headers.c | 132 ap_regex_t *regex; member in struct:__anon254 477 new->regex = ap_pregcomp(cmd->pool, value, AP_REG_EXTENDED); 478 if (new->regex == NULL) { 479 return "Header edit regex could not be compiled"; 500 ap_regex_t *regex; local 513 regex = ap_pregcomp(cmd->pool, hdr, AP_REG_EXTENDED | AP_REG_NOSUB); 514 if (regex == NULL) { 515 return "Header echo regex could not be compiled"; 518 new->regex = regex; [all...] |
/httpd/modules/lua/ |
H A D | mod_lua.c | 1144 ap_regex_t *regex = apr_pcalloc(cmd->pool, sizeof(ap_regex_t)); local 1145 if (ap_regcomp(regex, pattern,0)) { 1146 return "Invalid regex pattern!"; 1153 spec->uri_pattern = regex;
|
H A D | lua_request.c | 1122 * lua_ap_regex; r:regex(string, pattern [, flags]) 1123 * - Evaluates a regex and returns captures if matched 1134 ap_regex_t regex; local 1145 rv = ap_regcomp(®ex, pattern, flags); 1149 ap_regerror(rv, ®ex, err, 256); 1154 if (regex.re_nsub > MODLUA_MAX_REG_MATCH) { 1159 regex.re_nsub, MODLUA_MAX_REG_MATCH); 1164 rv = ap_regexec(®ex, source, MODLUA_MAX_REG_MATCH, matches, 0); 1171 for (i = 0; i <= regex.re_nsub; i++) { 2855 apr_hash_set(dispatch, "regex", APR_HASH_KEY_STRIN [all...] |
/httpd/modules/proxy/ |
H A D | mod_proxy.c | 620 if (ent->regex) { 621 if (!ap_regexec(ent->regex, r->uri, AP_MAX_REG_MATCH, regm, 0)) { 626 if (nocanon && ap_regexec(ent->regex, r->unparsed_uri, 641 * was no regex substitution. This is so cases like: 803 * Compare regex, fnmatch or string as appropriate 1515 add_proxy(cmd_parms *cmd, void *dummy, const char *f1, const char *r1, int regex) argument 1531 if (regex) 1542 if (regex) 1552 if (regex) { 1572 new->use_regex = regex; [all...] |
H A D | mod_proxy.h | 102 ap_regex_t *regexp; /* compiled regex (if any) for the remote */ 103 int use_regex; /* simple boolean. True if we have a regex pattern */ 113 ap_regex_t *regex; member in struct:proxy_alias 191 ap_regex_t *r; /* Is this a regex? */
|
/httpd/modules/filters/ |
H A D | mod_include.c | 194 backref_t *re; /* NULL if there wasn't a regex yet */ 658 /* Handle $0 .. $9 from the last regex evaluated. 664 "regex capture $%" APR_SIZE_T_FMT " refers to no regex in %s", 670 "regex capture $%" APR_SIZE_T_FMT 671 " is out of range (last regex was: '%s') in %s", 676 /* This particular subpattern was not used by the regex */ 1086 /* It's a string or regex token 1175 unsigned regex = 0; local 1249 ++regex; [all...] |