I am trying to split this string in C#.
"FiO2 at 0.40\n36°C-37°C\nFlow at 5 L/min"
I have tried using this code:
string[] splitVapo = value.Split('\u005c');
and this
string[] splitVapo = value.Split('\\');
But it does not work. Any suggestions?
\nis new line. there is no \ character there. \ is used for escaping. so \\ in string means there is \.var value = "FiO2 at 0.40\n36°C-37°C\nFlow at 5 L/min"; string[] splitVapo = value.Split('\n');works just fine;splitVapo.Lenghtis 3