How to parse Amazon S3 log format in php

If you want to parse / split the items in the Amazon S3 logformat in php, you need some regular expression magic. Here is my snippet.