/php-src/ext/pcre/tests/ |
H A D | ctype_back_to_c.phpt | 11 var_dump(preg_match('/\w/', "\xe4")); 13 var_dump(preg_match('/\w/', "\xe4"));
|
H A D | gh11374.phpt | 23 $res = preg_match('{^' . $regex . '$}x', '{a}', $matches, PREG_OFFSET_CAPTURE); 26 $res2 = preg_match('{^' . $regex . '$}xx', '{a}', $matches2, PREG_OFFSET_CAPTURE);
|
H A D | 001.phpt | 2 abusing preg_match() 7 var_dump(preg_match('~
|
H A D | skip_002.inc | 3 if (@preg_match('/./u', '') === false) {
|
H A D | bug76512.phpt | 5 var_dump(preg_match('/\w/u', 'ä'));
|
H A D | bug61780_1.phpt | 5 preg_match('/(4)?(2)?\d/', '23456', $matches, PREG_UNMATCHED_AS_NULL); 8 preg_match('/(4)?(2)?\d/', '23456', $matches, PREG_OFFSET_CAPTURE | PREG_UNMATCHED_AS_NULL);
|
H A D | bug67238.phpt | 6 echo preg_match('/a{1,3}b/U', 'ab');
|
H A D | bug80118.phpt | 5 preg_match('~[^\p{Han}\p{Z}]~u', ' ', $matches);
|
H A D | bug78338.phpt | 8 preg_match($string, $string);
|
H A D | bug26927.phpt | 7 var_dump(preg_match("!{$str_quoted}!", $str), $str_quoted);
|
H A D | bug61780.phpt | 5 preg_match('/(a)?([a-z]*)(\d*)/', '123', $matches, PREG_UNMATCHED_AS_NULL);
|
H A D | bug75539.phpt | 12 var_dump(preg_match('/((?1)?z)/', ''));
|
H A D | bug75355.phpt | 8 var_dump(preg_match('~^(' . preg_quote('hello#world', '~') . ')\z~x', 'hello#world', $m));
|
H A D | bug47662.phpt | 13 var_dump(preg_match($regex, 'foobar'));
|
H A D | bug79846.phpt | 6 preg_match("/([a-z]+_[a-z]+_*[a-z]+)_?(\d+)?/", $item, $match);
|
H A D | check_jit_enabled.phpt | 17 var_dump(preg_match(",PCRE JIT Support .* enabled,", $info));
|
H A D | 004.phpt | 15 …MED_)?(?:FUNCTION|METHOD)\s*\((\w+(?:,\s*\w+)?)\)/S', "PHP_FUNCTION(s, preg_match)\n{\nlalala", -1… 129 string(13) "s, preg_match"
|
H A D | bug38600.phpt | 7 var_dump(preg_match('/(?<!\w)(0x[\p{N}]+[lL]?|[\p{Nd}]+(e[\p{Nd}]*)?[lLdDfF]?)(?!\w)/', $foo, $m));
|
/php-src/ext/mysqli/tests/ |
H A D | mysqli_debug_mysqlnd_control_string.phpt | 78 if (!preg_match("@^" . $pid . "*@ismU", $trace)) 83 if (!preg_match("@^[\d]+@ismU", $trace)) 89 if (!preg_match("@^\s*[/\w\\\\d\.:\-]+\.[ch]@ismU", $trace)) 94 if (!preg_match("@^\d+:@ismU", $trace)) 102 if (!preg_match("@^(\d+):+@ismU", $line, $matches)) { 118 if (preg_match("@^[|\s]*>[\w]+@ism", $line, $matches)) { 129 if (preg_match("@^[|\s]*>([\w:]+)@ism", $line, $matches)) { 138 if (preg_match("@^[|\s]*>([\w:]+)@ism", $line, $matches)) { 174 if (preg_match("@^[|\s]*>([\w:]+)@ism", $line, $matches)) { 205 if (!preg_match("@^[|\s]*>\_mysqlnd_p?efree@ismU", $trace, $matches) && [all …]
|
/php-src/ext/gd/tests/ |
H A D | func.inc | 22 if (preg_match(',FreeType Version => (\d+\.\d+\.\d+),s', get_php_info(), $match)) { 33 if (preg_match(',libJPEG Version => ([a-z0-9]+),s', get_php_info(), $match)) { 44 if (preg_match(',libPNG Version => (\d+\.\d+\.\d+),s', get_php_info(), $match)) { 55 if (preg_match(',libXpm Version => (\d+),s', get_php_info(), $match)) {
|
/php-src/scripts/dev/ |
H A D | bless_tests.php | 10 if (!preg_match('/^(.*)\.phpt$/', $path, $matches)) { 30 if (!preg_match('/--EXPECT(F?)--(.*)$/s', $phpt, $matches)) { 103 return preg_match(formatToRegex($oldExpect), $new); 120 $hasWildcard = preg_match('/%[resSaAwidxfc0]/', $out);
|
/php-src/Zend/tests/offsets/ |
H A D | string_container_offset_behaviour.phpt | 646 !preg_match($EXPECTED_OUTPUT_VALID_OFFSETS_REGEX, $varOutput) 648 && !preg_match($EXPECTED_OUTPUT_STRING_CAST_OFFSETS_REGEX, $varOutput) 649 && !preg_match($EXPECTED_OUTPUT_STRING_CAST_OFFSETS_TO_0_REGEX, $varOutput) 651 && !preg_match($EXPECTF_OUTPUT_FLOAT_OFFSETS_OUT_OF_RANGE_REGEX, $varOutput) 652 && !preg_match($EXPECTED_OUTPUT_FLOAT_INF_NAN_OFFSETS_REGEX, $varOutput) 653 && !preg_match($EXPECTED_OUTPUT_INVALID_OFFSETS_REGEX, $varOutput) 680 !preg_match($EXPECTED_OUTPUT_VALID_OFFSETS_REGEX, $varOutput) 682 && !preg_match($EXPECTED_OUTPUT_STRING_CAST_OFFSETS_REGEX, $varOutput) 683 && !preg_match($EXPECTED_OUTPUT_STRING_CAST_OFFSETS_TO_0_REGEX, $varOutput) 686 && !preg_match($EXPECTED_OUTPUT_FLOAT_INF_NAN_OFFSETS_REGEX, $varOutput) [all …]
|
/php-src/ext/pcre/ |
H A D | php_pcre_arginfo.h | 66 ZEND_FRAMELESS_FUNCTION(preg_match, 2); 68 { ZEND_FRAMELESS_FUNCTION_NAME(preg_match, 2), 2 }, 78 ZEND_FUNCTION(preg_match);
|
/php-src/tests/lang/ |
H A D | bug29944.phpt | 10 if (preg_match('/\d/', $bar)) return true;
|
/php-src/.github/ |
H A D | nightly_matrix.php | 127 preg_match('(^#define PHP_MAJOR_VERSION (?<num>\d+)$)m', $content, $matches); 129 preg_match('(^#define PHP_MINOR_VERSION (?<num>\d+)$)m', $content, $matches);
|