I have a string and I want to change it using regex:
import re
s1 = "FirstName0001LastName0001"
s2 = re.sub('LastName', 'FamilyName', s1)
s2 = re.sub('FirstName', 'Contact', s1)
Expected Result s2 = "Contact0001FamilyName0001", Is there any other way to do this in one line of code?