df["clean_phone"] = df["phone"].str.replace(r"\\D+", "", regex=True) df["note"] = df["note"].str.replace(r"\\s+", " ", regex=True).str.strip ...
"back": "re.search(pattern, text) — find FIRST match anywhere\nre.findall(pattern, text) — find ALL matches, return list\nre.sub(pattern, repl, text) — replace ...