Regular expression
return list
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 "Found! ";
}
else{
echo "Not found! ";
}
}
?>
http://www.bkjia.com/PHPjc/532484.htmlwww.bkjia.comtruehttp: //www.bkjia.com/PHPjc/532484.htmlTechArticlehtml headtitle regular expression/title/head body a href="./"return list/abr form action= "?echo $PHP_SELF;?" method="post" Search in input type="text" name="string" value="?echo $string;?"...