A

Admin • 833K Points
Coach

Q. What does the =~ operator do in Ruby when used with regular expressions?

  • (A) Evaluates the regular expression
  • (B) Compares two regular expressions
  • (C) Matches a string against a regular expression
  • (D) Assigns a regular expression to a string
  • Correct Answer - Option(C)
  • Views: 14
  • Filed under category Ruby
  • Hashtags:

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.