Back
$line) { if($i == 0) { $columns = preg_split('/( |\t)+/', $line); foreach($columns as $column) { echo '
' . htmlentities($column) . "
\n"; } echo "
\n"; echo "
\n"; echo "
\n"; for($i = 1; $i < count($columns); $i++) { $regExpr .= '([^ ]+) +'; } $regExpr .= '(.*)$'; } else { //if(strpos($line, "youtube-dl") === FALSE) { // continue; //} if(!preg_match('/' . $regExpr . '/', $line, $matches)) { continue; } array_shift($matches); if (count($matches) == 0) continue; if($matches[0] != 'http') { continue; } echo "
\n"; foreach($matches as $match) { echo '
' . htmlentities($match) . "
\n"; } echo "
\n"; } } ?>