0

What does =~ in ruby mean?

I tried to get help on codementor.io recently and the change made to this tutorial:

http://sourcey.com/rails-4-omniauth-using-devise-with-twitter-facebook-and-linkedin/

was to replace this line:

self.email && self.email !~ TEMP_EMAIL_REGEX 

with this line:

self.email && TEMP_EMAIL_REGEX =~ self.email

What does =~ mean?

Mel
  • 2,481
  • 26
  • 113
  • 273

0 Answers0