find and replace 2nd occurrence of word 'cat' by 'bull' in a sentence 's',"re.sub('^((.*?cat.*?){1})cat', '\\1Bull', s)"