How to Extract color out of HTML text in Tag

Using a regex can do this for you.

def getHtmlColor(testString):
	import re

	regex = "<font color=(.{,})>"
	match = re.search(regex, testString)
	if match:
		return match.groups()[0][1:-1]
	else:
		return None

print  getHtmlColor("<html><font color='blue'>1.55")

Output:

blue