阅读背景:

Python RegEx - 从字符串中获取多条信息

来源:互联网 

I'm trying to use python to parse a log file and match 4 pieces of information in one regex. (epoch time, SERVICE NOTIFICATION, hostname and CRITICAL) I can't seem to get this to work. So Far I've been able to only match two of the four. Is it possible to do this? Below is an example of a string from the log file and the code I've gotten to work thus far. Any help would make me a happy noob.I'm trying to use python to parse a log file an




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

分享到: