Home
last modified time | relevance | path

Searched refs:regex (Results 1 – 25 of 66) sorted by relevance

123

/PHP-8.0/ext/pcre/tests/
H A Dnull_bytes.phpt22 Warning: preg_match(): Null byte in regex in %snull_bytes.php on line 3
24 Warning: preg_match(): Null byte in regex in %snull_bytes.php on line 4
26 Warning: preg_match(): Null byte in regex in %snull_bytes.php on line 5
28 Warning: preg_match(): Null byte in regex in %snull_bytes.php on line 6
30 Warning: preg_match(): Null byte in regex in %snull_bytes.php on line 7
32 Warning: preg_match(): Null byte in regex in %snull_bytes.php on line 9
34 Warning: preg_match(): Null byte in regex in %snull_bytes.php on line 10
36 Warning: preg_match(): Null byte in regex in %snull_bytes.php on line 11
38 Warning: preg_match(): Null byte in regex in %snull_bytes.php on line 12
40 Warning: preg_match(): Null byte in regex in %snull_bytes.php on line 13
[all …]
H A Dpcre_count.phpt5 $regex = '/(([0-9a-z]+)-([0-9]+))-(([0-9]+)-([0-9]+))/';
9 var_dump(preg_replace($regex, 'xxxx', $string, -1, $count));
13 $regex = '/([a-z]+)/';
16 var_dump(preg_replace($regex, 'xxxx', $string, -1, $count));
20 $regex = '~((V(I|1)(4|A)GR(4|A))|(V(I|1)C(0|O)D(I|1)(N|\/\\\/)))~i';
23 var_dump(preg_replace($regex, '...', $string, -1, $count));
26 $regex = '~((V(I|1)(4|A)GR(4|A))|(V(I|1)C(0|O)D(I|1)(N|\/\\\/)))~i';
29 var_dump(preg_replace($regex, '...', $string, -1));
H A Dbug47662.phpt6 $regex = '@';
8 $regex .= '((?P<x'.$bar.'>))';
11 $regex .= 'fo+bar@';
13 var_dump(preg_match($regex, 'foobar'));
H A Dbug73483.phpt5 $regex = "#dummy#";
7 var_dump(preg_replace_callback($regex, function (array $matches) use($regex) {
9 $ret = preg_replace($regex, "okey", $matches[0]);
H A Dbug70345.phpt5 $regex = '/(?=xyz\K)/';
8 var_dump(preg_split($regex, $subject));
10 $regex = '/(a(?=xyz\K))/';
12 preg_match($regex, $subject, $matches);
H A Dmarks.phpt6 $regex = <<<'REGEX'
15 var_dump(preg_match($regex, '_c_', $matches));
18 var_dump(preg_match_all($regex, '_a__b__c__d_', $matches, PREG_PATTERN_ORDER));
21 var_dump(preg_match_all($regex, '_a__b__c__d_', $matches, PREG_SET_ORDER));
24 var_dump(preg_replace_callback($regex, function($matches) {
H A Dbug41050.phpt7 $regex = '/(insert|drop|create|select|delete|update)([^;\']*('."('[^']*')+".')?)*(;|$)/i';
11 if (preg_match($regex,$sql, $m)) echo 'matched';
H A Dpreg_match_error2.phpt10 $regex = '/[a-zA-Z]/';
15 var_dump(preg_match($regex, $value));
22 var_dump(preg_match($regex, $value));
H A Dpreg_replace_callback.phpt10 $regex = '#\[indent]((?:[^[]|\[(?!/?indent])|(?R))+)\[/indent]#';
16 return preg_replace_callback($regex, 'parseTagsRecursive', $input);
H A Dpreg_replace_error2.phpt12 $regex = '/[a-zA-Z]/';
18 var_dump(preg_replace($regex, $value, $subject));
25 var_dump(preg_replace($regex, $value, $subject));
H A Dpreg_match_all_error3.phpt12 $regex = '/[a-z]/';
14 var_dump(preg_match_all($regex, $subject, 'test'));
H A Dpreg_match_all_error2.phpt12 $regex = '/[a-zA-Z]/';
17 var_dump(preg_match_all($regex, $value, $matches));
H A Dbug77827.phpt2 Bug #77827 (preg_match does not ignore \r in regex flags)
/PHP-8.0/ext/spl/tests/
H A Dbug68175.phpt6 $regex = new RegexIterator($arr, '/^test/');
8 $regex->getMode(),
9 $regex->getFlags(),
10 $regex->getPregFlags()
H A Dbug68128.phpt7 $regex = new RegexIterator($array, '/Array/');
9 foreach ($regex as $match) {
/PHP-8.0/ext/mbstring/tests/
H A Dretry_limit.phpt14 $regex = 'A(B|C+)+D|AC+X';
16 var_dump(mb_ereg($regex, $str));
18 var_dump(mb_ereg($regex, $str));
H A Dmb_ereg_variation5.phpt2 Test mb_ereg() function : usage variations - Test anchors in regex
21 $regex = '^.*?[[:blank:]]?[[:punct:][:digit:]]+\.?$';
24 var_dump(mb_ereg($regex, $string_ascii));
26 var_dump(mb_ereg($regex, $string_ascii, $regs_ascii));
30 var_dump(mb_ereg($regex, $string_mb));
32 var_dump(mb_ereg($regex, $string_mb, $regs_mb));
H A Dbug77370.phpt2 Bug #77370 (Buffer overflow on mb regex functions - fetch_token)
H A Dbug77371.phpt2 Bug #77371 (heap buffer overflow in mb regex functions - compile_string_node)
/PHP-8.0/ext/pcre/
H A Dphp_pcre.h28 PHPAPI zend_string *php_pcre_replace(zend_string *regex, zend_string *subject_str, const char *subj…
29 PHPAPI pcre2_code* pcre_get_compiled_regex(zend_string *regex, uint32_t *capture_count);
30 PHPAPI pcre2_code* pcre_get_compiled_regex_ex(zend_string *regex, uint32_t *capture_count, uint32_t…
50 PHPAPI pcre_cache_entry* pcre_get_compiled_regex_cache(zend_string *regex);
51 PHPAPI pcre_cache_entry* pcre_get_compiled_regex_cache_ex(zend_string *regex, int locale_aware);
H A Dphp_pcre.c632 ZSTR_VAL(regex), ZSTR_LEN(regex)); in pcre_get_compiled_regex_cache_ex()
634 key = regex; in pcre_get_compiled_regex_cache_ex()
641 if (key != regex) { in pcre_get_compiled_regex_cache_ex()
647 p = ZSTR_VAL(regex); in pcre_get_compiled_regex_cache_ex()
653 if (key != regex) { in pcre_get_compiled_regex_cache_ex()
666 if (key != regex) { in pcre_get_compiled_regex_cache_ex()
712 if (pp < ZSTR_VAL(regex) + ZSTR_LEN(regex)) { in pcre_get_compiled_regex_cache_ex()
732 while (pp < ZSTR_VAL(regex) + ZSTR_LEN(regex)) { in pcre_get_compiled_regex_cache_ex()
789 if (key != regex) { in pcre_get_compiled_regex_cache_ex()
901 if (key != regex) { in pcre_get_compiled_regex_cache_ex()
[all …]
/PHP-8.0/ext/fileinfo/tests/
H A Dfinfo_file_regex.phpt2 Test finfo_file() function : regex rules
16 echo "*** Testing finfo_file() : regex rules ***\n";
25 *** Testing finfo_file() : regex rules ***
H A Dbug79283.phpt11 0 regex \\0\\0\\0\\0 Test
H A Dbug77961.magic2 >1 regex \^[0-9:,\ ]*-->[0-9:,\ ]* SubRip File
20 0 regex \^#import Objective-C source text
/PHP-8.0/ext/spl/
H A Dspl_iterators.c1384 zend_string *regex; in spl_dual_it_construct() local
1388 intern->u.regex.flags = 0; in spl_dual_it_construct()
1400 intern->u.regex.pce = pcre_get_compiled_regex_cache(regex); in spl_dual_it_construct()
1408 intern->u.regex.regex = zend_string_copy(regex); in spl_dual_it_construct()
1863 …&intern->current.data, intern->u.regex.mode == REGIT_MODE_ALL_MATCHES, intern->u.regex.use_flags, … in PHP_METHOD()
1914 RETURN_STR_COPY(intern->u.regex.regex); in PHP_METHOD()
1949 intern->u.regex.mode = mode; in PHP_METHOD()
2038 ZVAL_STR_COPY(&args[1], intern->u.regex.regex); in PHP_METHOD()
2108 if (object->u.regex.pce) { in spl_dual_it_free_storage()
2111 if (object->u.regex.regex) { in spl_dual_it_free_storage()
[all …]

Completed in 44 milliseconds

123