How match() function is different from search() function ?

Question :

How match() function is different from search() function ?

The match() function returns a match object if the text matches the pattern. Otherwise it returns None. The match() functions looks for a pattern at the beginning of a string. The search() function checks for a match anywhere in the string. If there is more than one match, only the first occurrence of the match will be returned.


CCC Online Test Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online Exam Quiz O Level NIELIT Study material and Quiz Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Best Website and Software Company in Allahabad Website development Company in Allahabad