I have a sentence something like below
test_str = r'Mr.X has 23 apples and 59 oranges, his business partner from Colorado staying staying in hotel with phone number +188991234 and his wife and kids are staying away from him'
I would like to replace all digits in the above sentence with '0' and phone number should only have the first digit which is +1.
result = r'Mr.X has 00 apples and 00 oranges, his business partner from Colorado staying staying in hotel with phone number +1******** and his wife and kids are staying away from him'
I have the following regex to replace the phone number pattern (which always has a consistent number of digits).
result = re.sub(r'(.*)?(+1)(\d{8})', r'\1\2********', test_str)
Could i replace other digits with 0 except phone number in one single regex?