c# split string by carriage return line feed

string str="aaa\r\nbbscccjdddseee"; 
string[] sArray=str.Split(new char[2] {'\r,\n'}); 
use this

var arr = str . Split ( Environment . NewLine . ToCharArray ()); There is a problem with the split string;

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325249661&siteId=291194637