I have a regex pattern that filters out some specific values.
I tried running the pattern in PHP but it always returns NULL for values.
$re1='^(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}).*?"(.*?/p/.*?,\d+,(\d+).*?)" "(\d+)" "(\d+)".*$';
preg_match($re1, $current_line, $matches);
var_dump($matches);
Sample $current_line variable value-
122.99.152.202 - naveen [22/Nov/2013:13:24:40 +1300] "GET /p/bhYg_TohdFLAxXoNBgIEbg,1385079896,119118112/12.txt HTTP/1.1" "302" "160" "-" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.57 Safari/537.36" "-"
where am I doing wrong?