http://qs321.pair.com?node_id=11125592


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