title: How to split a string with '#' in C#
body: <p>I tried to split a string wich contains these character #</p>
  
  <pre><code>domicilioSeparado = domicilio.Split(@"#".ToCharArray());
  </code></pre>
  
  <p>but every time the array contains just one member. I've tried a lot of combinations but anything seems to work, I also tried to replace the string with a blank space and it kinda works - the problem is that it remains a single string.</p>
  
  <pre><code>domicilio = domicilio.Replace(@"#", @" ");
  </code></pre>
  
  <p>How can I resolve this?</p>
  
  <p>Complete code:</p>
  
  <pre><code>String[] domicilioSeparado;
  String domicilio = dbRow["DOMICILIO"].ToString();
  
  domicilioSeparado = domicilio.Split(@"#".ToCharArray());
  if (Regex.IsMatch(domicilioSeparado.Last(), @"\d"))
  {
      String domicilioSinNum = "";
      domicilioSinNum = domicilioSeparado[0];
      custTable.Rows.Add(counter, dbRow["CUENTA"], nombre,
          paterno, materno, domicilioSinNum, domicilioSeparado.Last(), tipoEntidad);
  } 
  </code></pre>