Mengganti nilai dalam string menggunakan pyhton ekspresi aregular
import re
s = '[email protected] [email protected] [email protected]'
print(re.sub('[a-z]*@', 'ABC@', s))
# [email protected] [email protected] [email protected]
Glorious Guanaco