Re: for line3 in myips matching too longer matches.

2019-06-26 Thread Sayth Renshaw
Chris Roberts wrote: > ### > CODE: >elif line1.rstrip(‘\n’) in line2.strip(‘\n’): >for line3 in myips: >print “###” >print “line1 is %s” % line1.rstrip(‘\n’) >print “line2 is %s” % line2.strip(‘\n’) > ### >

Re: for line3 in myips matching too longer matches.

2019-06-26 Thread Cameron Simpson
On 26Jun2019 14:21, Chris Roberts wrote: ### CODE: elif line1.rstrip(‘\n’) in line2.strip(‘\n’): for line3 in myips: print “###” print “line1 is %s” % line1.rstrip(‘\n’) print “line2 is %s” % line2.strip(‘\n’) ###

for line3 in myips matching too longer matches.

2019-06-26 Thread Chris Roberts
### CODE: elif line1.rstrip(‘\n’) in line2.strip(‘\n’): for line3 in myips: print “###” print “line1 is %s” % line1.rstrip(‘\n’) print “line2 is %s” % line2.strip(‘\n’) ### OUTPUT: line1 is 10.10.168.2 line2 is