![]() 05:26:54,719 Item1-8608 DEBUG Logger2 Successfully closed TERM2 05:26:54,719 Place3-1438ĝEBUG Logger2 delete successful for thething 05:26:54,704 Item1-8608ĝEBUG Logger2 Last attempt not useful TERM3 Here’s a simulated example of what that log file looks like: 05:26:54,688 Place3-1463ĞRROR Logger3Ğrror on randomThing If a line with one of those terms is immediately followed by a java error (the only lines in the file that do not begin with “2”), the entirety of that error is selected as well. In English, it’s going through a log file to pick out any line that mentions any of the 3 terms I care about. matches newline option: (TERM1|TERM2|TERM3).*?(?=^2) (both match the same selection of lines)) (or this one I have since switched to, using the. ![]() I used this regex to select the text I wanted: (TERM1|TERM2|TERM3)(.*\r\n^(.*\r\n^.*$) )* ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |