title: Find replace named groups regexp in Geany
body: <p>I am trying to replace public methods to protected methods for methods that have a comment.</p>
  <p>This because I am using phpunit to test some of those methods, but they really don't need to be public, so I'd like to switch them on the production server and switch back when testing.</p>
  <p>Here is the method declaration:</p>
  <pre><code>public function extractFile($fileName){ //TODO: change to protected
  </code></pre>
  <p>This is the regexp:</p>
  <pre><code>(?&lt;ws&gt;^\s+)(?&lt;pb&gt;public)(?&lt;fn&gt;[^/\n]+)(?&lt;cm&gt;//TODO: change to protected)
  </code></pre>
  <p>If I replace it with:</p>
  <pre><code>\1protected\3\//TODO: change back to public for testing
  </code></pre>
  <p>It seems to be working, but what I cannot get to work is naming the replace with. I have to use \1 to get the first group. Why name the groups if you can't access them in the replacing texts? I tried things like &lt;ws&gt;, $ws, $ws, but that doesn't work.</p>
  <p>What is the replacing text if I want to replace \1 with the &lt;ws&gt; named group?</p>