Tag Archives: regular expressions

String.IndexOf vs. Regexp.Match

How fast is String.IndexOf vs. Regexp.Match? In a 10,000 word text, while searching for a single word located only once at the end of the text, the results were stunning: Regexp.match is more than 70x faster than the equivalent String.IndexOf. That’s a huge difference! Continue reading

Posted in Core .NET, Silverlight, Web, Wndows Forms | Tagged , , | 1 Comment