|The Message text:
This email was created by [your name] who thought you would be interested in the following Article:
"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...
CodeProject also contains hundreds of articles, free source code samples and applications to help in your day to day programming. Why not give it a try!