Timeline for Replace fifth space with new line
Current License: CC BY-SA 3.0
7 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Nov 8, 2014 at 9:48 | vote | accept | good-to-know | ||
Nov 7, 2014 at 19:05 | comment | added | Guffa | @JamesSnell: That is another alternative, but I don't think that it's better. For one it creates more intermediate data. | |
Nov 7, 2014 at 16:52 | comment | added | James Snell |
A better alternative to substrings and iterating chars could be String.Split and put the array back together with StringBuilder .
|
|
Nov 7, 2014 at 14:27 | history | edited | Guffa | CC BY-SA 3.0 |
added 337 characters in body
|
Nov 7, 2014 at 14:22 | comment | added | aydjay | +1, I was trying to solve this myself with a mod and a string builder but to no avail. Regex is suited nicely to solving this. | |
Nov 7, 2014 at 14:21 | comment | added | Heslacher | a big +1 for explaining the regex pattern ! | |
Nov 7, 2014 at 14:19 | history | answered | Guffa | CC BY-SA 3.0 |