Re: Searching for a list of strings in a file with Python

2013-10-14 Thread Peter Otten
Starriol wrote: Hi guys, I'm trying to search for several strings, which I have in a .txt file line by line, on another file. So the idea is, take input.txt and search for each line in that file in another file, let's call it rules.txt. So far, I've been able to do this, to search for

Re: Searching for a list of strings in a file with Python

2013-10-14 Thread Dave Angel
On 14/10/2013 01:34, Starriol wrote: Hi guys, I'm trying to search for several strings, which I have in a .txt file line by line, on another file. So the idea is, take input.txt and search for each line in that file in another file, let's call it rules.txt. So far, I've been able to do

Re: Searching for a list of strings in a file with Python

2013-10-14 Thread Denis McMahon
On Sun, 13 Oct 2013 22:34:43 -0700, Starriol wrote: I'm trying to search for several strings, which I have in a .txt file line by line, on another file. So the idea is, take input.txt and search for each line in that file in another file, let's call it rules.txt. So far, I've been able to

Searching for a list of strings in a file with Python

2013-10-13 Thread Starriol
Hi guys, I'm trying to search for several strings, which I have in a .txt file line by line, on another file. So the idea is, take input.txt and search for each line in that file in another file, let's call it rules.txt. So far, I've been able to do this, to search for individual strings: