- 论坛徽章:
- 0
|
有没有办法,在一个文件里面先定位到某行,然后取这一行的下面两行的文本?
例如下面这段文本。我想先定位在 “ID: 113808924” 这一行, 然后取它下面的两行。
我是菜鸟。希望各位不吝赐教,谢谢
SEVERE: Error code:61 - Date parsing exception thrown at URL
ID: 113808924
AID: 1356475501
Posted: null
Format: MM dd yyyy
Sep 22, 2012 8:40:17 AM com.io.log.SystemLogger printSevere
SEVERE: Error code:61 - Date parsing exception thrown at URL
ID: 113808924
AID: 1367101375
Posted: null
Format: MM dd yyyy
Sep 22, 2012 8:40:17 AM com.io.log.SystemLogger printSevere
SEVERE: Error code:61 - Date parsing exception thrown at URL
ID: 113808924
AID: 1362779158
Posted: null
Format: MM dd yyyy
Sep 22, 2012 8:40:21 AM com.io.log.SystemLogger printSevere
SEVERE: Error code:61 - Date parsing exception thrown at URL
ID: 113808924
AID: 1325709142
Posted: null
Format: MM dd yyyy
|
|