Blog Home  Home Feed your aggregator (RSS 2.0)  
What did you learn today? - Fastest way to split strings
Phil Denoncourt's Technology Rants
 
 Thursday, March 11, 2004
Fastest way to split strings by Phil Denoncourt
I've written quite a few HTML scrapers (reading an HTML page, and parsing out information contained in it) and the biggest part of these programs are the string manipulation.  I usually break the HTML page up into string arrays and run through the array looking for keywords.  In .NET, you can break strings up using the .Split method of a string object or you can use Regular expressions.  I find regular expressions powerful, but cryptic to write and maintain, so I use the split method more often than not.  Darren Niemke has benchmarked different methods of spliting strings in .NET
Thursday, March 11, 2004 10:10:00 AM (GMT Standard Time, UTC+00:00)  #    Comments [0]    | 
Copyright © 2008 Phil Denoncourt III. All rights reserved.
DasBlog 'Portal' theme by Johnny Hughes.
Pick a theme: