This should do the trick:
^(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}).*?"(.*?/p/.*?,\d+,(\d+).*?)" "(\d+)" "(\d+)".*$
Here's a fiddle to demonstrate: http://www.rexfiddle.net/3sDwWut
I replaced your "I NEED THIS INTEGER" with an actual number for testing purposes, and also randomized the "bytes" and IP addresses a little bit. These are the captures, in order:
- The IP
- The request (e.g.
GET xxx HTTP/1.1
) - The integer from the URL you wanted
- The HTTP status
- The byte count