import rere.sub('X', 'Mr. Smith', 'attn: XnnDear X,n')re.subn('X', 'Mr. Smith', 'attn: XnnDear X,n')print re.sub('X', 'Mr. Smith', 'attn: XnnDear X,n')re.sub('[ae]', 'X', 'abcdef')re.subn('[ae]', 'X', 'abcdef')# Splitting (on Delimiting Pattern) with split()re.split(':', 'str1:str2:str3')
Name (required)
email (will not be published) (required)
Website