rubycoloredglasses


I'm Jason, a web application developer in East Tennessee.


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 ‘=~’.

comments powered by Disqus