谁可以把日志和正则复制一下上来吗?谢谢
可以在这里找到源码,https://github.com/itsmikej/imooc_logprocess,主程序和mock都有~
//100.97.120.0 - - [08/Jan/2016:10:40:18 +0800] http "GET / HTTP/1.0" 200 612 "-" "KeepAliveClient" "-" 1.005 1.854 //([\d\.]+)\s+([^ \[]+)\s+([^ \[]+)\s+\[([^\]]+)\]\s+([a-z]+)\s+\"([^"]+)\"\s(\d{3})\s+(\d+)\s+\"([^"]+)\"\s+\"(.*?)\"([\d\.-]+)\"\s+([\d\.-]+)\s+([\d\.-]+)