def pluggit(readlines,regx,addstrng): 
	""" Append a string to desire regex pattern """ 
	lst=readlines 
	cregex=re.compile(regx)  
	for eachLine in lst: 
		match=cregex.search(eachLine)
		if match:
			rplacement=match.group()+addstrng
			f=re.sub(regx,rplacement,eachLine)  
			lindex=lst.index(eachLine) 
			lst.remove(eachLine)
			lst.insert(lindex,f) 
	return lst
 Append a string to desire regex pattern 
recipes/Python/52553_RoadRunner_recursively_updates_contents/recipe-52553.py