How to switch two elements in string using Python RegEx?,"pattern.sub('A*\\3\\2\\1*', s)"