Python regular expressions OR March 7, 2023 by Tarik re.compile("Sent from my (iPhone|iPod)") See in action here.