simple regular expression check in ruby -mmedeiros