开发者

searching over multiple lines in the google appengine logs

I wanted to use a regular expression that covers multiple lines to search in the google appengine log console. I've tried:

 firstpart.*\n(.*\n)+.*secondpart
 firstpart.*$(.*$)+.*secondpart

but neither of these work. Does anyone know if this is poss开发者_运维技巧ible?

Thanks, Richard


Not sure if I'm understanding the question correctly, but to search for line breaks you should use \r\n as opposed to just \n.


\n will work when searching inside the logs but not between the top line of the log of the form

 2011-06-23 10:07:24.522 /users/action?key=agl5cmVjZWlwdHNyEgsmljZRjR5YQDDA 302 ....

and the rest of the logs

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜