Phalanger /2.0/Tests/RegEx/Perl/unsuccessful-preg_match_all.php

Language PHP Lines 13
MD5 Hash f0d8cd20ca01aae64e0ff5414fca40d3 Estimated Cost $170 (why?)
Repository https://Phalanger.svn.codeplex.com/svn View Raw File
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
[expect php]
[file]
<?
	$code = "blah {BLAH} blah";
echo 
	preg_match_all('#\{(([a-z0-9\-_]+?\.)+?)([a-z0-9\-_]+?)\}#is', $code, $varrefs), "\n",
	count($varrefs), "\n";
	
$code = "blah {BLAH.kvak} blah";
echo 
	preg_match_all('#\{(([a-z0-9\-_]+?\.)+?)([a-z0-9\-_]+?)\}#is', $code, $varrefs), "\n",
	count($varrefs), "\n";
?>
Back to Top