The ability to search strings or text values is the most important feature in any programming or scripting language. However, you usually end up needing a more advance searching tool than what the language provides.
String Searcher is unique because it returns data found between two specified strings of text data. It only returns this data if you supply the initial text to begin the search, so you really have to know the format of your data before searching it.
String Searcher contains 12 methods for searching data. It also contains convenient methods for searching integer and string arrays as well as the values of a DropDownList / HtmlSelect web control.
How to perform complex substring functions in .NET?
sample code (Returns an H1 title):
string sPage = string.Empty;
string sTitle = string.Empty;
string sInitial = "<h1";
string sStart = ">";
string sEnd = "<";
//sPage: load web page
//...
sTitle = System.RSO.Search.SubString(sPage, sInitial, sFind, sEnd);
sample code (Track Last Position Read):
string sPage = string.Empty;
string sTitle = string.Empty;
string sInitial = "<h1";
string sStart = ">";
string sEnd = "<";
int iStartPosition = 0;
int iLastPosition = 0;
//load web page into sPage
//...
sTitle = System.RSO.Search.SubString(sPage, iStartPosition, sInitial, sFind, sEnd, out iLastPosition);
//perform a loop to read all H1 tags or
//even H1 through H6 tags
//...
Purchase Pricing (Licenses):