title: How to replace Kate regular expression
body: <p>I am using the Kate editor.  Here is a minimal example that shows my problem:</p>
  
  <p>I have a file with a bunch of occurrences of:</p>
  
  <pre><code>\command{stuff}
  </code></pre>
  
  <p>where stuff is some arbitrary string of letters.  I want to replace this with</p>
  
  <pre><code>\disobey{stuff}
  </code></pre>
  
  <p>where stuff is unchanged.  The regular expression:</p>
  
  <pre><code>\\command\{[a-zA-Z]*\}
  </code></pre>
  
  <p>matches such expressions.  So I pull the replace dialog with CTRL-r, and enter</p>
  
  <pre><code>Find: \\command\{[a-zA-Z]*\}
  Replace: \\disobey\{\1\}
  </code></pre>
  
  <p>So in the document, an actual instance is say,</p>
  
  <pre><code>\command{exchange}
  </code></pre>
  
  <p>and when I hit the replace button is changed to</p>
  
  <pre><code>\disobey{1}
  </code></pre>
  
  <p>In the Kate documentation: Appendix B: Regular Expressions, \1 should match the first pattern used.  Is this indeed the correct syntax?  I have also tried $1, #1, and various other things.</p>