Hi:
I want to reach through a batch file that has many lines of which I want to do further processing only if there is a line starting with "call ..." Also the line should not contain
call %_anyvar%
How do I search for a pattern where it matches call in the beginning followed by any number of spaces and any word but not starting with %.
Pls help me out
import re
import os
def checkkfile():
fileIN = open(filename,"r")
for line in fileIN:
#line can be call %_junk% text1
#line can be call GetFiles %Label%
if (re.match(pattern,line)):
print ' '
else:
#more processing
checkfile()
Regards,
Indu