My Profile Photo

rubycoloredglasses


I'm Jason, a web applications developer in the San Francisco Bay area.


Ruby Comparison Operator =~

I saw this in some code recently, wasn’t sure what it did.

It basically returns TRUE or FALSE if there is a regular expression match, with the regular expression coming after the ‘=~’.