Why doesn't this ruby code compare regex ? - by gagagag if string == /\s{1,}/ or string == /\n{1,}/ puts "emptiness..." end Read the article