-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
Closed
Labels
Description
The docs at https://docs.python.org/3/library/re.html#search-vs-match start with
Python offers two different primitive operations based on regular expressions: re.match() checks for a match only at the beginning of the string, while re.search() checks for a match anywhere in the string (this is what Perl does by default).
but there has been re.fullmatch() since Python 3.4. I believe the third method should be mentioned and should get its own examples as well.