Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.191 X-Spam-Level: * X-Spam-Evidence: '*H*': 0.63; '*S*': 0.01; 'i.e.,': 0.16; 'library': 0.18; 'accepted.': 0.22; 'expanded': 0.24; 'expanding': 0.29; 'message-id:@mail.gmail.com': 0.30; 'me?': 0.32; 'received:209.85': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'in:': 0.36; 'thanks': 0.36; 'hi,': 0.36; 'should': 0.36; 'list': 0.37; 'received:209': 0.37; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'range': 0.61; 'containing': 0.69; 'url:domain': 0.91 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to :content-type; bh=VGQQYziqhTqMQXttLgHEgTR1svf2wwQdj0gTZC7FfsE=; b=JjcMyiHK/94sPO/KRPVaeQPlurATTwwePjRkNsc27an83fVq3MV3Y1Zw1VbJCOOvLc SNcjKREyJyTTTWSMA9wmRL3PZbydVwHNQKbH9NMHlQleE9yn8gRz6GwiXNLQDprdlbG1 p9vAWPup+NOlSh54H1OMvCdjDyoW7FStAGK7vjY9ateZbIBj4sRLjw3jibqJqCRk8PgE aRGBxZbRT5gxlzrrdqimBlCReBkHiSPqJZqEO70Vrq8R8sioTI6lllrTS7hkDKaK0Io2 WsRkEOORKLlrOn9J1eIkyuUm6bwWq0oLGDGT1JX+bNbkKWmVGsV26JzMstBLPOKDLwBD P+3Q== X-Gm-Message-State: ALoCoQmgBWJ7YyXNFP42ohWgtBkba1KuTEhMjPqyKhJySjUzsGm665LRGF5truEanBSIv34HyBJT MIME-Version: 1.0 X-Received: by 10.182.113.195 with SMTP id ja3mr6400367obb.46.1380295946437; Fri, 27 Sep 2013 08:32:26 -0700 (PDT) X-Originating-IP: [216.218.223.243] Date: Fri, 27 Sep 2013 08:32:26 -0700 Subject: Hostrange expansion From: Sam Giraffe To: python-list@python.org Content-Type: multipart/alternative; boundary=089e013d0db09299ea04e75f31a5 X-Mailman-Approved-At: Fri, 27 Sep 2013 18:38:51 +0200 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 27 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1380299931 news.xs4all.nl 15881 [2001:888:2000:d::a6]:43404 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:54895 --089e013d0db09299ea04e75f31a5 Content-Type: text/plain; charset=ISO-8859-1 Hi, I need some help in expanding a hostrange as in: h[1-100].domain.com should get expanded into a list containing h1.domain.com to h100.domain.com. Is there a library that can do this for me? I also need to valid the range before I expand it, i.e., h[1*100].domain.com should not be accept, or other formats should not be accepted. Thanks --089e013d0db09299ea04e75f31a5 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hi,

I need some help in expanding a host= range as in: h[1-100].domain.com should g= et expanded into a list containing h1.doma= in.com to h100.domain.com. Is th= ere a library that can do this for me? I also need to valid the range befor= e I expand it, i.e., h[1*100].domain.com = should not be accept, or other formats should not be accepted.

Thanks
--089e013d0db09299ea04e75f31a5--