ssiyad's wiki



Remove Unicode Characters from string (Regex)

import re

def clean_text(text):
    return re.sub(r"[^\x00-\x7F]*", "", text).strip()