$(document).ready
$('#prev_search').click
function antara($string, $start, $end){
$string = " ".$string;
$ini = strpos($string,$start);
if ($ini == 0) return "";
$ini += strlen($start);
$len = strpos($string,$end,$ini) - $ini;
return substr($string,$ini,$len);
}
$data = 'call addentry.bat c:\SD\RG "%SD_EVENTHOME%bin\sd_event.exe" -a wo/Pd -s pp2 -x "WO: ОАСУБД: БД SARD (NyanCat) Backup Logs" -c WO -m insert -l "C:\SD\wo_creation.log" -v "EXTID=REG%DATE% %TIME% %RANDOM%"';
echo antara($data,'-x "','"');
<html>
<head>
<title>Парсинг...</title>
</head>
<body>
<table border="2px";>
<?php
$dir=$_POST['load'];
if (is_dir($dir)) {
foreach (glob($dir . '/*') as $file) {
?>
<tr>
<td>
<?php echo $file; ?>
</td>
<td>
<?php
$filestring = file_get_contents($file);
preg_match('~-x(.*)-c~Uis', $filestring, $result);
echo $result[1];
?>
</td>
</tr>
<?php } } ?>
</table>
</body>
</html>