Update validates_as_hostname_label.rb

regexp refactor
Merge pull request #1 from agm1988/master

regexp refactor for rails4