title: How to debug the error "unexpected char CS1056"?
body: <p>I'm trying to compile but not work</p>
  
  <pre><code>  using System;
  
    using System.IO;
  
    using System.Text.RegularExpressions;
  
  
  
  
  class Program
  
  
       {
  
     static void Main()
  
        {
  
      string strFile = File.ReadAllText(@"C:\Users\diego\Desktop\pruebaregex2.txt"); 
  
   strFile = Regex.Replace(strFile, @"((FA|BO)\\s+(\\d{3}-\\d+)(\\s+)(.*?)(\\s+)(\\d+,*\\d*\\.\\d+)\\s*(FA|BO)\\s+(\\d{3}-\\d+)(\\s+)(.*?)(\\s+)(\\d+,*\\d*\.\\d+)\\s*, @"$2&amp;$4&amp;$6\\n$8&amp;$10&amp;$12");
  
    File.WriteAllText(@"C:\Users\diego\Desktop\pruebaregex2.txt", strFile);
  
    }
  }
  </code></pre>
  
  <p>I have tried to correct it but not know how to fix this error</p>
  
  <p>In this part appears the error</p>
  
  <pre><code>"$2&amp;$4&amp;$6\\n$8&amp;$10&amp;$12"
  
  Error CS1056: Character '$' unexpected
  </code></pre>