Re: Python regexp exclude problem

2011-06-01 Thread MRAB
On 01/06/2011 15:20, Lutfi Oduncuoglu wrote: Hello, I am trying to write a script for adding ip address to a list. Those ip addresses coming thorough from our edge router. I have a line in may script like if any(s not in z2 for s in('144.122.','188.38','193.140.99.2','213.161.144.166','

Re: Python regexp exclude problem

2011-06-01 Thread Christian Heimes
Am 01.06.2011 16:20, schrieb Lutfi Oduncuoglu: > Hello, > > I am trying to write a script for adding ip address to a list. Those ip > addresses coming thorough from our edge router. > I have a line in may script like > > if any(s not in z2 for s > in('144.122.','188.38','193.140.99.2','213

Python regexp exclude problem

2011-06-01 Thread Lutfi Oduncuoglu
Hello, I am trying to write a script for adding ip address to a list. Those ip addresses coming thorough from our edge router. I have a line in may script like if any(s not in z2 for s in('144.122.','188.38','193.140.99.2','213.161.144.166','92.45.88.242')): os.system(" echo " +z