/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_scan.l | 40 %x regex regex_flags 296 BEGIN(regex); 301 BEGIN(regex); 303 <regex>.|\n {
|
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):
|
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));
|
/httpd/docs/manual/style/scripts/ |
H A D | prettify.js | 248 * @return {RegExp} a global regex. 256 var regex = regexs[i]; 257 if (regex.ignoreCase) { 259 } else if (/[a-z]/i.test(regex.source.replace( 375 function allowAnywhereFoldCaseAndRenumberGroups(regex) { 379 var parts = regex.source.match( 414 // to a capturing group from an earlier regex. 451 if (regex.ignoreCase && needToFoldCase) { 474 var regex = regexs[i]; 475 if (regex [all...] |
H A D | prettify.min.js | 3 PYTHON_KEYWORDS,RUBY_KEYWORDS,SH_KEYWORDS,CONFIG_KEYWORDS,PHP_KEYWORDS];var C_TYPES=/^(DIR|FILE|vector|(de|priority_)?queue|list|stack|(const_)?iterator|(multi)?(set|map)|bitset|u?(int|float|char|void|const|static|struct)\d*(_t)?\b)|[a-z_]+_rec|cmd_parms\b/;var PR_STRING='str';var PR_KEYWORD='kwd';var PR_COMMENT='com';var PR_TYPE='typ';var PR_LITERAL='lit';var PR_PUNCTUATION='pun';var PR_PLAIN='pln';var PR_TAG='tag';var PR_DECLARATION='dec';var PR_SOURCE='src';var PR_ATTRIB_NAME='atn';var PR_ATTRIB_VALUE='atv';var PR_NOCODE='nocode';var REGEXP_PRECEDER_PATTERN='(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<<?=?|>>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*';function combinePrefixPatterns(regexs){var capturedGroupIndex=0;var needToFoldCase=false;var ignoreCase=false;for(var i=0,n=regexs.length;i<n;++i){var regex=regexs[i];if(regex.ignoreCase){ignoreCase=true;}else if(/[a-z]/i.test(regex.source.replace(/\\u[0-9a-f]{4}|\\x[0-9a-f]{2}|\\[^ux]/gi,''))){needToFoldCase=true;ignoreCase=false;break;}} 22 function allowAnywhereFoldCaseAndRenumberGroups(regex){var parts=regex.source.match(new RegExp('(?:' 35 if(regex.ignoreCase&&needToFoldCase){for(var i=0;i<n;++i){var p=parts[i];var ch0=p.charAt(0);if(p.length>=2&&ch0==='['){parts[i]=caseFoldCharset(p);}else if(ch0!=='\\'){parts[i]=p.replace(/[a-zA-Z]/g,function(ch){var cc=ch.charCodeAt(0);return'['+String.fromCharCode(cc&~32,cc|32)+']';});}}} 37 var rewritten=[];for(var i=0,n=regexs.length;i<n;++i){var regex=regexs[i];if(regex.global||regex.multiline){throw new Error(''+regex);} [all...] |
/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/include/ |
H A D | ap_regex.h | 122 * @param preg Returned compiled regex 123 * @param regex The regular expression string 128 AP_DECLARE(int) ap_regcomp(ap_regex_t *preg, const char *regex, int cflags); 131 * Match a NUL-terminated string against a pre-compiled regex. 132 * @param preg The pre-compiled regex 144 * Match a string with given length against a pre-compiled regex. The string 146 * @param preg The pre-compiled regex 162 * @param preg The precompiled regex 170 * Return an array of named regex backreferences 171 * @param preg The precompiled regex [all...] |
/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/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/lua/ |
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...] |
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;
|
/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...] |