fix a regexp to split host suffix

['test001', 'test002', 'test003'] will be compressed as ['test[001-003]']
Merge pull request #8 from williamjoy/patch-1

fix a regexp to split host suffix