![]() |
|||
Comments and Discussions
|
About Article
Alternative to Counting Lines in a String
Great analysis!I found out that Regex can be accelerated by a factor of about two.Instead of new Regex(@"\n", RegexOptions.Compiled|RegexOptions.Multiline);you can speed up by using:new Regex(@"^.*?$", RegexOptions.Compiled|RegexOptions.Multiline);But admittedly, nothing beats...
Top News
Old Japanese Man Creates Amazing Art Using Excel (Wait, Excel?) Get the Insider News free each morning.Related Videos
Related Articles
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||