";
echo "
";
?>
example code
$regtimeacc = "/etm([0-9]{1,2}[.][0-9]{1})/";
$result = preg_grep($regtimeacc, explode(",", $InfoGT));
foreach ($result as $key => $val) {
echo $val;
}
";
$regbattle = "/(battleye)/";
echo "$regbattle
";
$result = preg_grep($regbattle, explode(",", $InfoGT));
foreach ($result as $key => $val) { echo $val; }
echo "
";
$rehive = '/[^,]...(Hive)/';
echo "$rehive
";
$result = preg_grep($rehive,explode(",", $InfoGT));
foreach ($result as $key => $val) { echo $val; }
echo "
";
$regtimsev = "/[0-9]{1,2}[:][0-9]{1,2}/";
echo "$regtimsev
";
$result = preg_grep($regtimsev, explode(",", $InfoGT));
foreach ($result as $key => $val) { echo $val; }
echo "
";
$regmod = "/(mod)/";
echo "$regmod
";
$result = preg_grep($regmod, explode(",", $InfoGT));
foreach ($result as $key => $val) { echo $val; }
echo "
";
$regtimeacc = "/etm[0-9]{1,2}[.][0-9]{1}/";
echo "$regtimeacc
";
$result = preg_grep($regtimeacc, explode(",", $InfoGT));
foreach ($result as $key => $val) {
echo trim($val,"entm.0");
// $regrep = str_replace("etm", "", $val);
// echo str_replace("00000", "", $regrep);
}
echo "
";
$regtimeacn = "/entm[0-9]{1,2}[.][0-9]{1}/";
echo " $regtimeacn
";
$result = preg_grep($regtimeacn, explode(",", $InfoGT));
foreach ($result as $key => $val) {
echo trim($val,"entm.0");
// $regrepn = str_replace("entm", "", $val);
// echo str_replace("00000", "", $regrepn);
}
echo "
";
/*
$re = '/(?!etm)[0-9]{1,2}[.][0-9]{1}/';
$str = 'battleye,external,privHive,shard,lqs0,etm12.000000,entm2.000000,mod,01:43';
preg_match_all($re, $str, $matches, PREG_SET_ORDER, 0);
var_dump($matches); // Print the entire match result
*/
echo "Payes ton explode
";
$retest = explode(",", $InfoGT);
echo '';
echo $retest[0] . "|".$retest[2]. "|". $retest[3]. "|". $retest[4]. "|". $retest[8]. "|". $retest[5]. "|". $retest[6];
echo "
";
echo "Payes tes tests
";
$re = '/[0-9]{1,2}[:][0-9]{1,2}/m';
preg_match_all($re, $InfoGT, $matches, PREG_SET_ORDER, 0);
// Print the entire match result
//var_dump($matches);
echo ''; print_r($matches); echo '
';
echo "
";
$encode = json_encode($matches);
echo $encode;
echo "
";
//echo $matches[0];
$output = implode(",", array($InfoGT));
echo $output;
echo "
";
echo "get_defined_vars()
";
echo '' . print_r(get_defined_vars(), true) . '
';
?>