title: Regarding find.replace using interop.word in C#
body: <p>I have this code that superscript every number in between two x'es</p>
  
  <pre><code>doc.Find.Replacement.Font.Superscript = 1;
  doc.Find.Text = "x([0-9]{1,5})x";
  doc.Find.Replacement.Text = @"\1";
  doc.Find.MatchWildcards = true;
  
  doc.Find.Execute(Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Word.WdReplace.wdReplaceAll, Type.Missing, Type.Missing, Type.Missing, Type.Missing);
  </code></pre>
  
  <p>I would like to have a similar function that superscript all characters between two x'es and thought that maybe this would do the trick:</p>
  
  <pre><code>doc.Find.Replacement.Font.Superscript = 1;
  doc.Find.Text = "x([a-z]{1,5})x";   &lt;-------- characters instead of numbers
  doc.Find.Replacement.Text = @"\1";
  doc.Find.MatchWildcards = true;
  
  ...
  </code></pre>
  
  <p>But it doesn't work. Also i'm not sure what the following line does.</p>
  
  <pre><code>doc.Find.Replacement.Text = @"\1";
  </code></pre>