i was wondering if re.compile() is still used in python or if there are any new methods or features added to use for regular expressions istead of re.compile(). Because im currently reading a book about python and also watching a course. The book is a little bit old where they teach you about re.compile() togheter with re.search(). while in the Harvard CS50’s Introduction to Programming with Python, which is pretty new, they didnt use re.compile(), but only re.search() for regular expressions.
i searched for documentation for re.compile(), but didnt find answers