title: Replacing only a part of regexp matching
body: <p>please consider the following javascript code:</p>
  
  <pre><code>"myObject.myMethod();".replace(/\.\w+\(/g, "xxx");
  </code></pre>
  
  <p>it gives "<code>myObjectxxx);</code>" as "<code>.myMethod(</code>" is selected.</p>
  
  <p>Now I would only select <code>myMethod</code> instead. In other words I want to select any word starting with <code>.</code> and ending with <code>(</code> (excluded).</p>
  
  <p>Thanks, Luca.</p>