Link to home
Start Free TrialLog in
Avatar of Mark_Co
Mark_CoFlag for United States of America

asked on

What does =~ mean in Ruby

I can't find an answer on Google about what =~ means in Ruby.

Here is an example I am trying to understand

 if regex =~ file

Open in new window


and file in this case is from a loop:

Dir.entries(real_dir).each do |file|

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of Paul Jackson
Paul Jackson
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial