It looks like this:
string[] lines = Regex.Split(line, @"\s+|(?!^)(?=\p{P})|(?<=\p{P})(?!$)");
Separation of "ASds22d. asd ,156" into "ASds22d" + "." + "asd" + "," + "156" "ASds22d" + "." + "asd" + "," + "156" .
Here's the problem with strings like "az", "0-9", or variations like "ac" and "4-5". My regular expression divides "az 1-9" into "a" + "-" + "z" + "1" + "-" + "9" , but I just need to "az" + "1-9" .
Can someone fix this regex?
source share