MCQs > IT & Programming > Python > What is the basic difference between theses two operations in 're' module: match() and search()?

Python MCQs

What is the basic difference between theses two operations in 're' module: match() and search()?

Answer

Correct Answer: re.search() operation checks for a match anywhere in the string. re.match() operation checks for a match only at the begining of the string.

Explanation:

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

Python Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

Python Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it