Re: re.search experts needed on fqdn stripping..

2005-09-20 Thread Mike Meyer
"rh0dium" <[EMAIL PROTECTED]> writes: > After thinking about it for a bit longer i simplified it but still have > the same problem.. > > e =[] > hosts = [ "poundcake.fpdn.com", "scorpion.fpdn.com", "loghost", > "scorpian", "localhost", "lan" ] > > ignore = [ "localhost", "loghost", "timehost", "mai

Re: re.search experts needed on fqdn stripping..

2005-09-20 Thread rh0dium
OK Duh.. After thinking about it for a bit longer i simplified it but still have the same problem.. e =[] hosts = [ "poundcake.fpdn.com", "scorpion.fpdn.com", "loghost", "scorpian", "localhost", "lan" ] ignore = [ "localhost", "loghost", "timehost", "mailhost" ] for host in hosts: sn = re.s

re.search experts needed on fqdn stripping..

2005-09-20 Thread rh0dium
Hi all, Ok I have a list hosts = [ "poundcake.fqdn.com", "scorpion.fqdn.com", "loghost", "scorpian", "localhost", "lan", "lan.fpdn.com" ] Assumptions: scorpian.fqdn.com == scorpian lan == lan.fqdn.com I want pear this list down based on the following: 1. ignore loghost, localhost, timehost, ma