title: Detecting whole words using str_detect() in R
body: <p>I have a string in R:</p>
  
  <pre><code>c("FLT1", "FLT1P1", "FLT1-FLT2", "SGY-FLT1, GPD")
  </code></pre>
  
  <p>I want to keep all matches that have FLT1 but not when other <em>alphanumeric</em> characters are added.  In other words, I want to keep all entries except the second one, as all of them mention FLT1, but the second one mentions FLT1P1.</p>
  
  <p>When I use str_detect, it returns everything as true:</p>
  
  <pre><code>str_detect(string, "FLT1")
  [1] TRUE TRUE TRUE TRUE
  </code></pre>
  
  <p>Can anyone advise on the best method to only return the items that mention FLT1?</p>