import re


def clean(mystring, mypatterns):
	"""Takes a string and some compiled regex patterns and removes regex matches from the string"""
	returnstring = mystring
	for pattern in mypatterns:
		returnstring = pattern.sub(r'', returnstring)
	returnstring = re.sub('\n\n', '', returnstring)
	returnstring = re.sub('\n', ' ', returnstring)
	return returnstring