in reply to My regex works, but I want to make sure it's not blind luck
Your explanation is reasonably good. The problem with your regex is that it can make false matches. Have you considered Regexp::Common::net?
Bill
In Section
Seekers of Perl Wisdom