Home
last modified time | relevance | path

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

12345

/PHP-5.5/ext/ereg/regex/
H A Dregex.mak12 !MESSAGE NMAKE /f "regex.mak" CFG="regex - Win32 Release"
90 ALL : "$(OUTDIR)\regex.lib" "$(OUTDIR)\regex.bsc"
94 ALL : "$(OUTDIR)\regex.lib" "$(OUTDIR)\regex.bsc"
187 ".\regex.h"\
201 ".\regex.h"\
219 ".\regex.h"\
230 ".\regex.h"\
248 ".\regex.h"\
261 ".\regex.h"\
278 ".\regex.h"\
[all …]
H A Dregex.dsp1 # Microsoft Developer Studio Project File - Name="regex" - Package Owner=<4>
7 CFG=regex - Win32 Debug
11 !MESSAGE NMAKE /f "regex.mak".
16 !MESSAGE NMAKE /f "regex.mak" CFG="regex - Win32 Debug"
20 !MESSAGE "regex - Win32 Release" (based on "Win32 (x86) Dynamic-Link Library")
21 !MESSAGE "regex - Win32 Debug" (based on "Win32 (x86) Dynamic-Link Library")
31 !IF "$(CFG)" == "regex - Win32 Release"
57 !ELSEIF "$(CFG)" == "regex - Win32 Debug"
87 # Name "regex - Win32 Release"
88 # Name "regex - Win32 Debug"
H A Dregex.dsw6 Project: "regex"=.\regex.dsp - Package Owner=<4>
/PHP-5.5/ext/ereg/
H A Dconfig0.m45 dnl Check for regex library type
7 PHP_ARG_WITH(regex,,
8 [ --with-regex=TYPE Regex library type: system, php. [TYPE=php]
24 AC_MSG_WARN([Invalid regex library type selected. Using default value: php])
28 AC_MSG_CHECKING([which regex library to use])
32 ereg_regex_sources="regex/regcomp.c regex/regexec.c regex/regerror.c regex/regfree.c"
33 ereg_regex_headers="regex/"
44 PHP_ADD_BUILD_DIR([$ext_builddir/regex], 1)
45 PHP_ADD_INCLUDE([$ext_srcdir/regex])
51 #include <regex.h>], [regex_t rt; rt.re_magic;],
H A Dconfig.w327 …php_regexec -Dregerror=php_regerror -Dregfree=php_regfree -Dregcomp=php_regcomp -Iext/ereg/regex");
8 ADD_SOURCES("ext/ereg/regex", "regcomp.c regexec.c regerror.c regfree.c", "ereg");
9 AC_DEFINE('REGEX', 1, 'Bundled regex');
10 AC_DEFINE('HSREGEX', 1, 'Bundled regex');
11 PHP_INSTALL_HEADERS("ext/ereg", "php_ereg.h php_regex.h regex/");
H A Dregex.patch1 diff -u regex.orig/regerror.c regex/regerror.c
2 --- regex.orig/regerror.c 2011-08-09 19:49:30.000000000 +0800
3 +++ regex/regerror.c 2011-08-12 10:45:57.000000000 +0800
5 #include "regex.h"
61 diff -u regex.orig/regerror.ih regex/regerror.ih
62 --- regex.orig/regerror.ih 2011-08-09 19:49:00.000000000 +0800
63 +++ regex/regerror.ih 2011-08-09 19:41:07.000000000 +0800
/PHP-5.5/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.'>))';
10 $regex .= 'fo+bar@';
12 var_dump(preg_match($regex, 'foobar'));
H A Dbug70345.phpt5 $regex = '/(?=xyz\K)/';
8 $v = preg_split($regex, $subject);
11 $regex = '/(a(?=xyz\K))/';
13 preg_match($regex, $subject, $matches);
H A Dpreg_grep_error.phpt6 * proto array preg_grep(string regex, array input [, int flags])
15 $regex = '/\d/';
19 var_dump(preg_grep($regex, $input, $flags, $extra_arg));
22 $regex = 'string_val';
23 var_dump(preg_grep($regex));
H A Dpreg_replace_error.phpt6 * proto string preg_replace(mixed regex, mixed replace, mixed subject [, int limit [, count]])
15 $regex = '/\w/';
20 var_dump(preg_replace($regex, $replace, $subject, $limit, $count, $extra_arg));
23 $regex = '/\w/';
25 var_dump(preg_replace($regex, $replace));
H A Dpreg_replace_callback_error.phpt6 * proto string preg_replace(mixed regex, mixed replace, mixed subject [, int limit [, count]])
20 $regex = '/\d/';
24 var_dump(preg_replace_callback($regex, 'integer_word', $subject, $limit, $count, $extra_arg));
27 $regex = '/\d/';
28 var_dump(preg_replace_callback($regex, 'integer word'));
H A Dpreg_grep_error2.phpt6 * proto array preg_grep(string regex, array input [, int flags])
14 $regex = '/[a-zA-Z]/';
18 var_dump(preg_grep($regex, $value));
21 var_dump(preg_grep($regex, $value));
H A Dpreg_replace_error2.phpt6 * proto string preg_replace(mixed regex, mixed replace, mixed subject [, int limit [, count]])
14 $regex = '/[a-zA-Z]/';
19 var_dump(preg_replace($regex, $value, $subject));
22 var_dump(preg_replace($regex, $value, $subject));
H A Dbug41050.phpt7 $regex = '/(insert|drop|create|select|delete|update)([^;\']*('."('[^']*')+".')?)*(;|$)/i';
11 if (preg_match($regex,$sql, $m)) echo 'matched';
/PHP-5.5/ext/spl/examples/
H A Dkeyfilter.inc25 private $regex;
33 * @param regex Regular expression used as a filter.
35 function __construct(Iterator $it, $regex)
38 $this->regex = $regex;
45 return ereg($this->regex, $this->getInnerIterator()->key());
52 return $this->regex;
H A Dregexfindfile.inc25 * @param $regex perl style regular expression to find files with
27 function __construct($path, $regex)
29 parent::__construct($path, $regex);
/PHP-5.5/ext/spl/internal/
H A Dregexiterator.inc31 private $regex; /**< the regular expression to match against */
45 * @param regex the regular expression to match
52 function __construct(Iterator $it, $regex, $mode = 0, $flags = 0, $preg_flags = 0) {
54 $this->regex = $regex;
78 return preg_match($this->regex, $subject, $matches, $this->preg_flags);
82 return preg_match($this->regex, $subject, $this->current, $this->preg_flags) > 0;
86 return preg_match_all($this->regex, $subject, $this->current, $this->preg_flags) > 0;
90 preg_split($this->regex, $subject, $this->current, $this->preg_flags) > 1;
94 $result = preg_replace($this->regex, $this->replacement, $subject);
166 return $this->regex;
/PHP-5.5/ext/fileinfo/
H A Dmagicdata.patch24 -0 regex =^\\s*BEGIN\\s*[{] awk script text
25 +0 regex =^\\s{0,100}BEGIN\\s{0,100}[{] awk script text
34 Subject: [PATCH] further optimize awk by not looking for the BEGIN regex until
49 -0 regex =^\\s{0,100}BEGIN\\s{0,100}[{] awk script text
51 +>0 regex =^\\s{0,100}BEGIN\\s{0,100}[{] awk script text
61 Subject: [PATCH] Limit regex search for BEGIN to the first 4K of the file.
76 ->0 regex =^\\s{0,100}BEGIN\\s{0,100}[{] awk script text
77 +0 regex/4096 =^\\s{0,100}BEGIN\\s{0,100}[{] awk script text
/PHP-5.5/ext/mbstring/tests/
H A Dmb_ereg_variation5.phpt2 Test mb_ereg() function : usage variations - Test anchors in regex
26 $regex = b'^.*?[[:blank:]]?[[:punct:][:digit:]]+\.?$';
29 var_dump(mb_ereg($regex, $string_ascii));
31 var_dump(mb_ereg($regex, $string_ascii, $regs_ascii));
35 var_dump(mb_ereg($regex, $string_mb));
37 var_dump(mb_ereg($regex, $string_mb, $regs_mb));
/PHP-5.5/ext/pcre/
H A Dphp_pcre.h36 PHPAPI char *php_pcre_replace(char *regex, int regex_len, char *subject, int subject_len, zval *rep…
37 PHPAPI pcre* pcre_get_compiled_regex(char *regex, pcre_extra **extra, int *options TSRMLS_DC);
38 PHPAPI pcre* pcre_get_compiled_regex_ex(char *regex, pcre_extra **extra, int *preg_options, int *co…
55 PHPAPI pcre_cache_entry* pcre_get_compiled_regex_cache(char *regex, int regex_len TSRMLS_DC);
H A Dphp_pcre.c300 p = regex; in pcre_get_compiled_regex_cache()
479 if (IS_INTERNED(regex)) { in pcre_get_compiled_regex_cache()
480 regex = tmp = estrndup(regex, regex_len); in pcre_get_compiled_regex_cache()
498 pcre_cache_entry * pce = pcre_get_compiled_regex_cache(regex, strlen(regex) TSRMLS_CC); in pcre_get_compiled_regex()
515 pcre_cache_entry * pce = pcre_get_compiled_regex_cache(regex, strlen(regex) TSRMLS_CC); in pcre_get_compiled_regex_ex()
1350 Z_STRLEN_P(regex), in php_replace_in_subject()
1367 zval **regex, in preg_replace_impl() local
1405 SEPARATE_ZVAL(regex); in preg_replace_impl()
1924 ZEND_ARG_INFO(0, regex)
1932 ZEND_ARG_INFO(0, regex)
[all …]
/PHP-5.5/ext/fileinfo/tests/
H A Dfinfo_file_regex.phpt2 Test finfo_file() function : regex rules
16 echo "*** Testing finfo_file() : regex rules ***\n";
26 *** Testing finfo_file() : regex rules ***
/PHP-5.5/ext/mbstring/oniguruma/doc/
H A DAPI55 Create a regex object.
142 Create a regex object.
152 Create a regex object.
197 1 reg: regex object.
205 1 reg: regex object.
217 1 reg: regex object
241 1 reg: regex object
338 1 reg: regex object.
352 1 reg: regex object.
363 1 reg: regex object.
[all …]

Completed in 37 milliseconds

12345