Home
last modified time | relevance | path

Searched refs:regex (Results 26 – 50 of 108) sorted by relevance

12345

/PHP-5.5/ext/pcre/tests/
H A Dpreg_split_error2.phpt14 $regex = '/[a-zA-Z]/';
18 var_dump(preg_split($regex, $value));
21 var_dump(preg_split($regex, $value));
H A Dpreg_match_error2.phpt14 $regex = '/[a-zA-Z]/';
18 var_dump(preg_match($regex, $value));
21 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_match_all_error2.phpt14 $regex = '/[a-zA-Z]/';
16 var_dump(preg_match_all($regex, $value, $matches));
21 var_dump(preg_match_all($regex, $value, $matches));
H A Dpreg_match_all_error3.phpt13 $regex = '/[a-z]/';
15 var_dump(preg_match_all($regex, $subject, 'test'));
H A Dpreg_replace_variation1.phpt6 * proto string preg_replace(mixed regex, mixed replace, mixed subject [, int limit [, count]])
10 * Testing preg_replace when the regex and the replacement are both arrays.
H A Dpreg_replace_callback_error1.phpt6 * proto string preg_replace(mixed regex, mixed replace, mixed subject [, int limit [, count]])
11 * Testing how preg_replace_callback reacts to being passed the wrong type of regex argument
H A Dcache_limit.phpt2 Compiled regex cache limit
H A Dpreg_replace_error1.phpt6 * proto string preg_replace(mixed regex, mixed replace, mixed subject [, int limit [, count]])
11 * Testing how preg_replace reacts to being passed the wrong type of regex argument
H A Dstudy.phpt2 Study regex
H A Dpreg_grep_basic.phpt6 * proto array preg_grep(string regex, array input [, int flags])
15 …example but the array created contains everything that is NOT matched but the regex (matches three)
/PHP-5.5/ext/spl/internal/
H A Drecursiveregexiterator.inc27 * @param regex the regular expression to match
34 function __construct(RecursiveIterator $it, $regex, $mode = 0, $flags = 0, $preg_flags = 0) {
35 parent::__construct($it, $regex, $mode, $flags, $preg_flags);
/PHP-5.5/sapi/cli/tests/
H A D006.phpt80 Parameter #0 [ <required> $regex ]
90 Parameter #0 [ <required> $regex ]
100 Parameter #0 [ <required> $regex ]
126 Parameter #0 [ <required> $regex ]
/PHP-5.5/ext/spl/tests/
H A Dbug68128.phpt7 $regex = new RegexIterator($array, '/Array/');
9 foreach ($regex as $match) {
H A Dregexiterator_getregex.phpt11 # Simple regex
/PHP-5.5/ext/spl/
H A Dspl_iterators.c1478 char *regex; in spl_dual_it_construct() local
1495 intern->u.regex.regex = estrndup(regex, regex_len); in spl_dual_it_construct()
2079 RETURN_STRINGL(intern->u.regex.regex, intern->u.regex.regex_len, 1); in SPL_METHOD()
2210 MAKE_STD_ZVAL(regex); in SPL_METHOD()
2216 ZVAL_STRING(regex, intern->u.regex.regex, 1); in SPL_METHOD()
2222 args[1] = &regex; in SPL_METHOD()
2230 zval_ptr_dtor(&regex); in SPL_METHOD()
2309 if (object->u.regex.regex) { in spl_dual_it_free_storage()
2310 efree(object->u.regex.regex); in spl_dual_it_free_storage()
2411 ZEND_ARG_INFO(0, regex)
[all …]
H A Dspl_iterators.h162 char *regex; member
164 } regex; member
/PHP-5.5/ext/mbstring/tests/
H A Dempty_pattern.phpt16 Warning: mb_ereg_search_regs(): No regex given in %s on line %d
H A Dmb_ereg_variation7.phpt2 Test mb_ereg() function : usage variations - different regex features in $pattern
27 echo "Could not set regex encoding to utf-8\n";
H A Dmb_regex_encoding_basic.phpt11 * Description: Returns the current encoding for regex as a string.
H A Dmb_regex_encoding_error2.phpt11 * Description: Returns the current encoding for regex as a string.
/PHP-5.5/ext/ereg/
H A Dereg.c291 zval **regex, /* Regular expression */ in php_ereg() local
305 …if (zend_parse_parameters(argc TSRMLS_CC, "Zs|Z", &regex, &findin, &findin_len, &array) == FAILURE… in php_ereg()
318 if (Z_TYPE_PP(regex) == IS_STRING) { in php_ereg()
319 err = regcomp(&re, Z_STRVAL_PP(regex), REG_EXTENDED | copts); in php_ereg()
322 if (Z_TYPE_PP(regex) == IS_DOUBLE) { in php_ereg()
323 convert_to_long_ex(regex); /* get rid of decimal places */ in php_ereg()
325 convert_to_string_ex(regex); in php_ereg()
327 err = regcomp(&re, Z_STRVAL_PP(regex), copts); in php_ereg()
/PHP-5.5/ext/opcache/
H A Dconfig.w3224 …php_regexec /Dregerror=php_regerror /Dregfree=php_regfree /Dregcomp=php_regcomp /Iext/ereg/regex");
/PHP-5.5/ext/filter/tests/
H A Dbug52929.phpt13 // the validation regex.
/PHP-5.5/ext/ereg/tests/
H A Dregular_expressions.inc5 * based on documentation on http://www.tin.org/bin/man.cgi?section=7&topic=regex .

Completed in 46 milliseconds

12345