title: c# - Regular Expression to split by delimiter and text qualifier
body: <p>i need to split a text file, with values separated by comma and with text qualifier like ¨|¨</p>
  
  <p>I was trying to use these function:</p>
  
  <pre><code>    public string[] Split(string expression, string delimiter, 
                  string qualifier, bool ignoreCase)
      {
  
          string _Statement = String.Format
              ("{0}(?=(?:[^{1}]*{1}[^{1}]*{1})*(?![^{1}]*{1}))",
                              Regex.Escape(delimiter), Regex.Escape(qualifier));
  
          RegexOptions _Options = RegexOptions.Compiled | RegexOptions.Multiline;
          if (ignoreCase) _Options = _Options | RegexOptions.IgnoreCase;
  
          Regex _Expression = new Regex(_Statement, _Options);
          return _Expression.Split(expression);
      } 
  </code></pre>
  
  <p>to process a text file with rows like this one:</p>
  
  <p>¨|¨column 1¨|¨,¨|¨column 2¨|¨,¨|¨column 3¨|¨,¨|¨column 4¨|¨</p>
  
  <p>But my regex expression is not working...
  Any ideas that could help me to make this work?</p>
  
  <p>Thanks in advance</p>