阅读背景:

使用PHP PCRE regex从日志字符串的url获取带扩展名的文件名

来源:互联网 

I'm writing a script for parsing a log file from an network device. The log file generated from the device it's not regular, the lines doesn't follow a logic sequence and haves multiple patterns. My script needs to extract from the log lines only the ones that matches an specific pattern and from that lines specific information as datetime, entry type, resource type and resource name from the url in the string. The pattern that I need to match it's the following:I'm writing a script for parsing a log file fro




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: