So im reading from a file like so.
f = open("log.txt", 'w+r')
f.read()
So f now has a bunch of lines, but im mainly concerned with it having a number, and then a specific string (For example "COMPLETE" would be the string)
How...exactly would you go about checking this?
I thought it'd be something like:
r.search(['[0-9]*'+,"COMPLETE")
but that doesn't seem to work? Maybe it's my Regex thats wrong (im pretty terrible at it) but basically it just needs to check the Entire String (which is multiple lines and contain's \n's for a Number (specifically 200) and the word COMPLETE (in caps)
edit: For reference here is what the logfile looks like
Using https
Sending install data... DONE
200 COMPLETE
<?xml version="1.0" encoding="UTF-8"?>
<SolutionsRevision version="185"/>
I just need to make sure it says "200" and COMPLETE