title: Replace part of a string in JavaScript
body: <p>How can I replace:</p>
  
  <pre><code>var url = "http://localhost:2879/ServiceDonneesArchive.svc/Installations(1002)?$expand=Stations";
  </code></pre>
  
  <p>by:</p>
  
  <pre><code>var nameInstallation = 1002;
      var url = "http://localhost:2879/ServiceDonneesArchive.svc/Installations(nameInstallation)?$expand=Stations";
  </code></pre>