title: How to use Findstr regex to match a dash (-)?
body: <p>Trying to use findstr to match text that follows the format below:</p>
  
  <blockquote>
  <pre><code>PTB-14
  AIR-217
  </code></pre>
  </blockquote>
  
  <p>The problem I'm having is that I just can't seem to get <code>findstr</code> to match on the dash, <code>-</code>. I've created the script below in a batch file:</p>
  
  <pre><code>set dash=-
  echo.%dash%
  echo !dash! | findstr /i /r /C:- &gt;nul
  if errorlevel 1 (
      echo "ERROR!" &gt;&amp;2
      )
  </code></pre>
  
  <p>I've tried the regex with <code>/C:-</code>, <code>/C:"-"</code>, <code>/C:"\-"</code> and <code>/C:"\\-"</code>. I just can't seem to get it matched. Anyone know what I am doing wrong?</p>