I am trying to replace multiple items using regex but am not getting the expected Output. In the below code I need to replace the phone number and the word 'hi' with "X"
txt = "Hi, my phone number is 089992654231. I am 24 years old."
def processString3(txt):
txt = re.sub('[0-9],Hi]', 'X', txt)
print(txt)
processString3(txt)
Expected Output - XX, my phone number is XXXXXXXXXX. I am 24 years old.