Python string replace pattern. sub () to replace all matches of a pattern with the ...