Why doesn't this ruby code compare regex ?
Posted
by gagagag
on Stack Overflow
See other posts from Stack Overflow
or by gagagag
Published on 2010-03-01T04:55:04Z
Indexed on
2010/04/20
10:33 UTC
Read the original article
Hit count: 121
ruby
if string == /\s{1,}/ or string == /\n{1,}/
puts "emptiness..."
end
© Stack Overflow or respective owner