This is my string:
<span class="word">blue</span><span class="word">red</span><span class="word">yellow</span><span class="word">orange</span>
Usually I would use this just to get one result into a variable:
result = re.search('(<span class="word">)(.*)(</span>)', string)
color = result.group(2)
But now I want to get every result from my string and store each into a list. How would I go about doing this?