Suppose I had a string:
string str = \"1111222233334444\";
How can I break this string into chunks of some size?
e.g., breaking t
Simple and short:
// this means match a space or not a space (anything) up to 4 characters var lines = Regex.Matches(str, @"[\s\S]{0,4}").Cast().Select(x => x.Value);