def removeListIntervals(l, intervals):
	"""
		This function will remove portions of text according to string intervals.
		You have to apply `text = reduceBlank(text, keepNewLines=True)` just after.

		:example:
		>>> removeListIntervals(['a', 'b', 'c', 'd', 'e'], [(1, 2), (3, 4)])
		['a', 'c', 'e']
	"""
	newL = []
	currentIndex = 0
	for a, b in intervals:
		newL += l[currentIndex:a]
		currentIndex = b
	newL += l[currentIndex:]
	return newL