title: search add and replace with batch
body: <p>I need a batch file that will search for the string "Gen_1_X". When the string is found and lets say the "X" is a "4" the script will add "Gen_1_3" before and "Gen_1_5" before and after. Basically adding and subtracting one from the original number and adding the new entries before and after accordingly. The first block of code is what the end product should look like. The second block is what you have to work with.   </p>
  
  <pre><code>&lt;span class="O verse Gen_1_3" data-osis="Gen.1.3"&gt;&lt;span class="verse-num v-4"&gt;4&amp;nbsp;
  &lt;span class="O verse Gen_1_4" data-osis="Gen.1.4"&gt;&lt;span class="verse-num v-4"&gt;4&amp;nbsp;    &lt;/span&gt;&lt;/span&gt;
  &lt;span class="O verse Gen_1_5" data-osis="Gen.1.5"&gt;&lt;span class="verse-num v-4"&gt;4&amp;nbsp;
  
  &lt;span class="O verse Gen_1_5" data-osis="Gen.1.5"&gt;&lt;span class="verse-num v-5"&gt;5&amp;nbsp;&lt;/span&gt;&lt;/span&gt;
  &lt;span class="O verse Gen_1_6" data-osis="Gen.1.6"&gt;&lt;span class="verse-num v-6"&gt;6&amp;nbsp;&lt;/span&gt;&lt;/span&gt;
  &lt;span class="O verse Gen_1_7" data-osis="Gen.1.7"&gt;&lt;span class="verse-num v-7"&gt;7&amp;nbsp;&lt;/span&gt;&lt;/span&gt;
  &lt;span class="O verse Gen_1_8" data-osis="Gen.1.8"&gt;&lt;span class="verse-num v-8"&gt;8&amp;nbsp;&lt;/span&gt;&lt;/span&gt;
  &lt;span class="O verse Gen_1_9" data-osis="Gen.1.9"&gt;&lt;span class="verse-num v-9"&gt;9&amp;nbsp;&lt;/span&gt;&lt;/span&gt;
  </code></pre>