title: Eclipse, regular expression search and replace
body: <p>In eclipse, is it possible to use the matched search string as part of the replace string when performing a regular expression search and replace?</p>
  <p>Basically, I want to replace all occurrences of</p>
  <pre><code>variableName.someMethod()
  </code></pre>
  <p>with:</p>
  <pre><code>((TypeName)variableName.someMethod())
  </code></pre>
  <p>Where <code>variableName</code> can be any variable name at all.</p>
  <p>In <em>sed</em> I could use something like:</p>
  <pre><code>s/[a-zA-Z]+\.someMethod\(\)/((TypeName)&amp;)/g
  </code></pre>
  <p>That is, <code>&amp;</code> represents the matched search string. Is there something similar in Eclipse?</p>
  <p>Thanks!</p>