title: Web.config with XDT transform to do partial replace
body: <p>I am in a situation where I just want to update a part of a the URL of a WCF endpoint. Right now we do this by including different configs with all the endpoints per 'variety'. This is tedious to manage. I would like to setup a transform in the web.config to do so.</p>
  
  <p>These are two examples of the files</p>
  
  <p><strong>Dev</strong></p>
  
  <pre><code>  &lt;endpoint address="http://servicesdev.host.com/RPUtilityServices/LogException.svc/restService"
          behaviorConfiguration="restfulBehavior"
          binding="webHttpBinding"
          contract="Host.RP.Shared.Common.Services.Utility.Interfaces.IExceptionUtilityService"
          name="LogService" /&gt;
  </code></pre>
  
  <p>and some more of these</p>
  
  <p><strong>Staging</strong></p>
  
  <pre><code>  &lt;endpoint address="http://servicessta.host.com/RPUtilityServices/LogException.svc/restService"
              behaviorConfiguration="restfulBehavior"
              binding="webHttpBinding"
              contract="Host.RP.Shared.Common.Services.Utility.Interfaces.IExceptionUtilityService"
              name="LogService" /&gt;
  </code></pre>
  
  <p>The difference is the servicessta versus servicesdev. Now I also have servicesuat and a servicesqa etcera. I would like to setup a transform to just replace the '<strong>dev</strong>' with '<strong>sta</strong>' etc and not the entire block (using <code>xdt:Transform="Replace"</code>)</p>
  
  <p>But how do I do that?</p>