title: batch iterate string with whitespace delimiter, find word containing substring
body: <p>I don't understand why this doesn't work</p>
  
  <pre><code>@echo off
  SETLOCAL ENABLEDELAYEDEXPANSION
  set contents=sdflkm efsdf sdfkns CRQ239478239
  for /f "tokens=1* delims= " %%i in ("%contents%") do (
    set str=%%i
    echo str: !str:~0,3!
      if "!str:~0,3!"=="CRQ" (
        set revision=!str!
      )
  )
  echo revision: %revision%
  </code></pre>
  
  <p>I want to extract the word in the string that begins with "CRQ". But this for loop only does one iteration, grabbing the first 3 letters of the string.  The output is just <code>str: sdf</code>.  It should check the first 3 letters of every word in the string, and if the first 3 letters are 'CRQ', it should set the revision variable to the word containing CRQ.  How do I do this?</p>