title: Replacing using named capture groups in IntelliJ IDEA
body: <p>I'm using IntelliJ IDEA's find and replace tool:</p>
  
  <p><a href="https://i.stack.imgur.com/ycPQ7.png" rel="noreferrer"><img src="https://i.stack.imgur.com/ycPQ7.png" alt="Screenshot of find/replace tool"></a></p>
  
  <p>My regex: <code>&lt;h2&gt;(?&lt;title&gt;.*?)&lt;/h2&gt;</code></p>
  
  <p>I'd like to use my named capture group in the replace string. I know I can use <code>$1</code> to refer to the first capture group, but I'd like to use its name.</p>
  
  <p>I've tried to no avail:</p>
  
  <ul>
  <li><code>$title</code></li>
  <li><code>$&lt;title&gt;</code></li>
  <li><code>$'title'</code></li>
  <li><code>$"title"</code></li>
  <li><code>$(title)</code></li>
  <li><code>$[title]</code></li>
  <li><code>$['title']</code></li>
  <li><code>$["title"]</code></li>
  <li><code>$("title")</code></li>
  <li><code>$('title')</code></li>
  <li><code>$[&lt;title&gt;]</code></li>
  <li><code>$['&lt;title&gt;']</code></li>
  <li><code>$["&lt;title&gt;"]</code></li>
  <li><code>$('&lt;title&gt;')</code></li>
  <li><code>$("&lt;title&gt;")</code></li>
  <li><code>$&lt;"title"&gt;</code></li>
  </ul>