I need to save data in a table (for reporting, stats etc...) so a user can search by time, user agent etc. I have a script that runs every day that reads the Apache Log and
If you don't want to capture the double quotes, move them out of the capture groups.
(\".*?\")
Should become:
\"(.*?)\"
As alternative you could just post-process the entries with trim($str, '"')
trim($str, '"')