title: VBScript RegEx group match with back reference issue
body: <p>I have a line in my web.config which is as follows</p>
  
  <pre><code>&lt;clientDependency loggerType="xxx.ClientDependencies.Logger,StrattonWebShared" version="144"&gt;
  </code></pre>
  
  <p>What I am trying to do is write a script which checks my code base for modifications and then updates the clientDependency module version by 1 if any found. So the code bit to increase the version by one is as follows</p>
  
  <pre><code>Set clientDepRegExp = new RegExp
      clientDepRegExp.IgnoreCase = True
      clientDepRegExp.Global = True
      clientDepRegExp.Pattern = "(&lt;clientDependency.*version=\"")(\d+)(\"".*)"
  
      '1 = open file for reading
      Set clientDependencyConfigFile = fileSystemObject.OpenTextFile(targetFile, 1)
  
      fileContents = clientDependencyConfigFile.ReadAll
  
      clientDependencyConfigFile.Close
  
      fileContents = clientDepRegExp.Replace(fileContents, "$1" &amp; CInt("$2") + 1 &amp; "$3")
  </code></pre>
  
  <p>My problem is with the last line. <code>$2</code> is the version number and doing <code>CInt("$2") + 1</code> is just giving me <code>3</code> (so <code>2 + 1</code> that is). If I just use <code>"$2"</code> then its returning <code>144</code> (refer to the first line for version number). SO my question is if I wana do a quick arithmatic inside replace how should I do it?</p>
  
  <p>Thanks in advance for any tips ans suggestions that you can provide</p>