Improve regexp

how it works http://rubular.com/r/xQioqMb1YP
Pass the spec