df["clean_phone"] = df["phone"].str.replace(r"\\D+", "", regex=True) df["note"] = df["note"].str.replace(r"\\s+", " ", regex=True).str.strip ...
Day 21/25 – Python Practice Practiced Regex in Python by solving a password validation problem on GeeksforGeeks. Learning how regular expressions help in checking patterns efficiently.