title: Perl Regular Expressions sum numbers up
body: <p>Im trying to find a way to add +100 to all those integers but I keep failing miserably.</p>
  
  <p>I have these lines</p>
  
  <pre><code>  &lt;devio1="875" devio2="7779" devio3="5635" devio4="154"/&gt;
    &lt;devio1="765" devio2="74779" devio3="31535" devio4="544"/&gt;
    &lt;devio1="4335" devio2="13" devio3="55635" devio4="1565"/&gt;
  </code></pre>
  
  <p>I just cant get this to work in a good fasion. It never adds 100 to the integers, it only replaces them. What is the matter? Is this incorrect way of using regex and I have to use some other method?</p>
  
  <pre><code> $d1 += 100;
   $d2 += 100;
   $d3 += 100;
   $d4 += 100;
   $d5 += 100;
   $d6 += 100;
  
  s/&lt;devio1="\d+" devio2="\d+" devio3="\d+" devio4="\d+" devio5="\d+"    devio6="\d+"\/&gt;/&lt;devio1="$d1" devio2="$d3" devio3="$d4" devio4="$d5" devio5="$d6" devio1="$d7"\/&gt;/g;
  </code></pre>