I'm Jason, a web applications developer in the Denver, Colorado 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 ‘=~’.

comments powered by Disqus