正则表达式
返回列表
if(isset($string) and isset($query) and $string"" and $query""){
if(isset($case)){
$func = "ereg";
}
else{
$func = "eregi";
}
switch($where){
case "^":
$query = "^" . $query;
break;
case "$":
$query .= "$";
break;
}
eval("$found = $func("$query","$string");");
if($found){
echo "找到!";
}
else{
echo "未找到!";
}
}
?>
http://www.bkjia.com/PHPjc/532484.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/532484.htmlTechArticlehtml headtitle正则表达式/title/head body a href="./"返回列表/abr form action="?echo $PHP_SELF;?" method="post" 在input type="text" name="string" value="?echo $string;?"中查...