Hello,
What is the correct regex statement using re.search()
to find and return a file extension in a string.
Such as:
(.+).(avi|rar|zip|txt)
I need it to search a string and if it contains any of those avi, rar, etc) return just that extension.
Thanks!
EDIT: should add that is needs to be case insensitive