26 lines
996 B
PHP
26 lines
996 B
PHP
<?php
|
|
$conf_value = "[16:55:12] MESSAGE : array (
|
|
'p' => 'bourse',
|
|
'__utmz' => '171938809.1224845136.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)',
|
|
'hbsession' => 'prshcsPTkJRtEAFPm9suAfTh2KhkRdk1r/Iyp/uJM8A=',
|
|
'__utma' => '171938809.2035284058.1225486044.1225803239.1225813154.17',
|
|
'__utmc' => '171938809',
|
|
'__utmb' => '171938809.17.10.1225813154',
|
|
) [86.220.42.240] [GET]
|
|
[16:55:14] MESSAGE : array (
|
|
'p' => 'bourse',
|
|
'__utmz' => '171938809.1225812444.2.2.utmcsr=halo-battle.fr|utmccn=(referral)|utmcmd=referral|utmcct=/',
|
|
'hbsession' => 'D5q6K8yTr6/+mnMGR0zTTLc53x0yqFGC9zsa+qntzww=',
|
|
'__utma' => '171938809.85178107.1225810207.1225810207.1225812444.2',
|
|
'__utmc' => '171938809',
|
|
'__utmb' => '171938809.172.10.1225812444',
|
|
) [77.203.214.152] [GET]
|
|
";
|
|
|
|
$exp = '#^[\\d{2}:\\d{2}:\\d{2}] \\w{6,13} : .{0,500} [\\d{1,3}.\\d{1,3}.\\d{1,3}.\\d{1,3}] [\\w{3,4}]$#ui';
|
|
$exp = '#^[\\d](\\[(\\w{0,30})\\])?\\s?\:\\s?"(.{0,500})"$#ui';
|
|
|
|
preg_match_all($exp,trim($conf_value),$m);
|
|
|
|
var_dump($m);
|
|
?>
|