Ruby string compare regardless of string case
Posted
by Steven
on Stack Overflow
See other posts from Stack Overflow
or by Steven
Published on 2010-05-16T16:28:44Z
Indexed on
2010/05/16
16:30 UTC
Read the original article
Hit count: 249
Hi
I need to check for
"Apple" = "Apple" TRUE
"Apple" = "APPLE" TRUE
"Apple" = "Apple1" FALSE
in ruby
I need a string comparison but for the check to not be case sensitive.
thks
© Stack Overflow or respective owner