MCQs > IT & Programming > Ruby On Rails > The =~ operator is used to do inline Regular Expression matching, for instance: 'function' =~ /fun/ 'function' =~ /dinosaurs/ What are possible return values for the =~ matcher?

Ruby On Rails MCQs

The =~ operator is used to do inline Regular Expression matching, for instance:
"function" =~ /fun/
"function" =~ /dinosaurs/
What are possible return values for the =~ matcher?

Answer

Correct Answer: nil, 0, and any positive integer

Explanation:

Note: This Question is unanswered, help us to find answer for this one

Ruby On Rails Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

Ruby On Rails Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it