Advertisement
Guest User

Xiaoqian Shi

a guest
Jul 25th, 2014
233
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.25 KB | None | 0 0
  1. __author__ = 'shix'
  2.  
  3. import re
  4. def check_log():
  5.  
  6.     f = open('sm.log','r')
  7.  
  8.     num = 1
  9.     for line in f:
  10.  
  11.         if re.match("(.*)(E|e)xpected(.*)",line):
  12.             print line
  13.             print num
  14.  
  15.         num = num+1
  16.  
  17.  
  18.  
  19.  
  20. check_log()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement