I would like to split string "203136;70;;;;;" by ;; separator but in this string separator was mixed with regular symbol ;
From "203136;70;;;;;"
To
You can use StringSplitOptions.RemoveEmptyEntries:
using System;
class Program
{
static void Main()
{
string input = "203136;70;;;;;";
string[] result = input.Split(new string[] { ";;" }, StringSplitOptions.RemoveEmptyEntries);
foreach (string r in result)
{
Console.WriteLine(r);
}
}
}
203136;70
;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With