2017-12-14 26 views

답변

2
string s = "Like";  
string s2 = String.Join(" ", s.Select((x, index) => (index+1) == s.Length ? "" : String.Concat(x, s[index+1]))); 

그런데 UPDATE

같은 문제가 정규식으로 해결 될 수있다 :

string s3 = Regex.Replace(s, @"\w", m => m.NextMatch().Success ? m.Value + m.NextMatch().Value + " " : "").TrimEnd();