I am making a program that needs to grab a string input ie:
"green * 10 + white *10 + Blue *10 + Yellow *10 + Red * 20"
I am looking to parse only the numbers and colors out of the string. I searched the forum and I found this example:
colors=['green','white','blue','yellow','red']
R=re.compile [colors]
However, this is not working correctly! Any help would be much appreiciated.