thanks nilamo.
i cut it down to very basic, just trying to print the lines in file2 that match my regex.
i cut it down to very basic, just trying to print the lines in file2 that match my regex.
with open("/path/to/file1", 'r') as s: number = '12345' with open("/path/to/file2", 'r') as f: for line in f: if number in line: print linethis works, but now if i try to add a second number to number it doesn't work. do i need an array or something for the values?