Re: [OT] a little about regex

2006-10-20 Thread Fulvio
On Friday 20 October 2006 02:40, Ron Adam wrote: > I see, is this a cleanup script to remove the least wanted items? Yes. Probably will remain in this mode for a while. I'm not prepaired to bring out a new algorithm > Or is it a bit of both?  Why the score? As exposed on another post. There shou

Re: [OT] a little about regex

2006-10-19 Thread Ron Adam
Fulvio wrote: > *** > Your mail has been scanned by InterScan MSS. > *** > > > On Wednesday 18 October 2006 15:32, Ron Adam wrote: > >> |Instead of using two separate if's, Use an if - elif and be sure to test > > Thank you, Ron, for the input :) > I'll e

Re: [OT] a little about regex

2006-10-18 Thread Fulvio
*** Your mail has been scanned by InterScan MSS. *** On Wednesday 18 October 2006 15:32, Ron Adam wrote: > |Instead of using two separate if's, Use an if - elif and be sure to test Thank you, Ron, for the input :) I'll examine also in this mode. Meanwhile

Re: [OT] a little about regex

2006-10-18 Thread Ron Adam
Fulvio wrote: > *** > Your mail has been scanned by InterScan MSS. > *** > > > Hello, > > I'm trying to get working an assertion which filter address from some domain > but if it's prefixed by '.com'. > Even trying to put the result in a negate test I can

Re: [OT] a little about regex

2006-10-18 Thread Fredrik Lundh
Fulvio wrote: > ... if deny.search(adr): cnt += 1 > ... if allow.search(adr): cnt += 1 hint: under what circumstances are "cnt" decremented in the above snippet? -- http://mail.python.org/mailman/listinfo/python-list