Input:
127.0.0.1 user-identifier frank [10/Oct/2000:13:55:36 -0700] "GET /apache_pb.gif HTTP/1.0" 200 2326
Regex:
(\S+)\s+(\S+)\s+(\S+)\s+(\[.*?\])\s+(".*?")\s+(\S+)\s+(\S+)
Where the capture groups are numbered as in the breakdown below.
Breakdown:
Group Regex Match
#1 IP (\S+) 127.0.0.1
#2 Identity (\S+) user-identifier
#3 Username (\S+) frank
#4 Time (\[.*?\]) [10/Oct/2000:13:55:36 -0700]
#5 Request (".*?") "GET /apache_pb.gif HTTP/1.0"
#6 Status (\S+) 200
#7 Size (\S+) 2326
each separated by a \s+