Hostrange expansion

Sam Giraffe sam at giraffetech.biz
Fri Sep 27 11:32:26 EDT 2013


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20130927/f1ee906f/attachment.html>


More information about the Python-list mailing list