Extract first match from a string of text?
<p>Say I have the following string:</p>

<blockquote>
  <p>hello my car is red and my shoe is blue</p>
</blockquote>

<p>I want to match the following words:</p>

<blockquote>
  <p>blue, red, orange, purple</p>
</blockquote>

<p>So it searches the variable for those 4 words, and returns the first one - in my example the word returned would be 'red'. But if the car was blue, the word blue would be returned first as that is the first one it finds out the list of possible matches.</p>

<p>How can I do this?</p>
