That looks like a JSON String so you could use the Newtonsoft.Json
nuget package to parse the string and use it's results.
Here is the class you have to use for that specific string (this site is very handy)
public class AnObject
{
public string se { get; set; }
public string de { get; set; }
public string cs { get; set; }
public string pc { get; set; }
public string nm { get; set; }
public string tp { get; set; }
public string dt { get; set; }
public string tz { get; set; }
public string dk { get; set; }
}
and then you can parse the string like so
public static void Main()
{
var scannerInput = "{\"se\":\"NUMBERS\",\"de\":\"NUMBERS\",\"cs\":\"NUMBERS\",\"pc\":\"NUMBERS\",\"nm\":\"NUMBERS\",\"tp\":\"DEL\",\"dt\":\"NUMBERS\",\"tz\":\"UTC+01\",\"dk\":\"\"}";
var obj = JsonConvert.DeserializeObject<AnObject>(scannerInput);
Console.WriteLine(obj.se);
Console.WriteLine(obj.de);
Console.WriteLine(obj.cs);
Console.WriteLine(obj.pc);
}
full example: https://dotnetfiddle.net/RTdMRF
note: as Tim said, if your string is always formatted like that and your numbers have no commas (also timezone and dk field should have no commas), his answer should give you an easier and faster solution. Also no extra packages.