I have the text file file1.txt. which contains lines as

```
test_file_work(list: 2, Result =0)

test_file_work_list(list: 5, Result =0)

test_file_work_list(list: 6, Result =0)

test_file_work(list: 2, Result =5)

test_file_work_list(list: 6, Result =0)

```

How to find in all the lines in the file result=0

My code:

```
fo=open("file1.txt","r")
for line in fo.readlines():
    if re.search(r"test_(.*)(list)(.*),result=0,line):
        print "ok"
    else:
        print "mismatch"

```