Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- string s = "Like";
- string s2 = String.Join(" ", s.Select((x, index) => (index+1) == s.Length ? "" : String.Concat(x, s[index+1])));
- string s3 = Regex.Replace(s, @"w", m => m.NextMatch().Success ? m.Value + m.NextMatch().Value + " " : "").TrimEnd();
Add Comment
Please, Sign In to add comment