Powerful tools for matching patterns in text.
import re pattern = r"d{3}-d{3}-d{4}" # Matches phone numbers in XXX-XXX-XXXX format match = re.search(pattern, "My phone number is 123-456-7890.")