(text)
return cleaned_text
strip non-numeric characters and add '%2B' at the front
strip non-numeric characters and add '%2B' at the front
strip non - numeric characters and add %2B at the front
def clean_phone_number(text):
    """
    strip non-numeric characters and add '%2B' at the front
    """
    non_decimal = re.compile(r'[^\d.]+')
    plus = '+'
    cleaned_text = "%s%s" % (plus, non_decimal.sub('', text))
    return cleaned_text
def clean_phone_number ( text ) : non_decimal = re . compile ( r'[^\d.]+' ) plus = '+' cleaned_text = "%s%s" % ( plus , non_decimal . sub ( '' , text ) ) return cleaned_text