fix a regexp to split host suffix

['test001', 'test002', 'test003'] will be compressed as ['test[001-003]']