title: regex search replace in batch
body: <p>I want to do search/replace with a regex pattern in windows batch on a set of files. It will be something like:</p>
  
  <pre><code>if the regex matches a line matches then replace it with a new line.
  </code></pre>
  
  <p>also I need to add a variable in the regex to just replace the value.
  Does anyone know how to deal with the batch script? I'm not that familiar with it. Some examples maybe helpful.</p>