title: it possible use a named variable for print a named group in closure in groovy?
body: <p>something like this code</p>
  
  <p>please help me</p>
  
  <pre><code>"56".replaceAll(/(?&lt;name1&gt;\d)(?&lt;name2&gt;\d)/){print name1}
  </code></pre>