정규표현식

<aside> 👍🏻 import re

</aside>

#1단계 :  "the"라는 패턴을 컴파일한 후 패턴 객체를 리턴합니다. 
pattern = re.compile("the")    

# 2단계 : 컴파일된 패턴 객체를 활용하여 다른 텍스트에서 검색을 수행합니다.
pattern.findall('of the people, for the people, by the people')

# ['the', 'the', 'the']
re.findall('the', 'of the people, for the people, by the people')

# ['the', 'the', 'the']

메서드