Python Tutorial 27
Python Tutorial 27
Regular expressions allow you to locate and change strings in very powerful ways. They work
in almost exactly the same way in every programming language as well.
CODE
findall() returns a list of matches and . is used to match any 1 character or space. Finditer can
be used to return an iterator of matches.
CODE
for i in all_apes:
print(i)
print(loc_tuple)
CODE
print()
print()
print()
CODE
print(owl_food)
CODE
That’s all for this video. In the next video I’ll provide much more on what you can do with
regular expressions.