how to switch two elements in string using python regex?,"pattern.sub('A*\\3\\2\\1*', s)"