|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Searching for stringsHi,
Web sites, like Google, have the ability to remove certain common words from the users search. For example, if I were to type "php and .net", Google would remove the word "and." So, that brings me to my delimma. I'm using the Publishers database as an example. What I'd like to do is search each book's title and remove certain common words from it. The remaining words I'd like to use as keywords. Is there any way that this can be accomplished in .NET? Thanks Roshawn First idea that came to my head.
You could make a string array of the common words you dont want to appear in the string. Then take the search string, and do a \\\ for i as integer = 0 to commonword.length-1 [searchstring] = [searchstring].replace([commonword[i]], "") next /// or something along those lines. Im sure there are better ways of doing this, because this won't deal with the spaces in between the words, etc. but it might get you off the ground. hth "Roshawn Dawson" <udr***@bellsouth.net> schrieb: 'Strings.Replace', 'String.Replace', 'Regex.Replace'.> Web sites, like Google, have the ability to remove certain common words > from the users search. For example, if I were to type "php and .net", > Google would remove the word "and." > > So, that brings me to my delimma. I'm using the Publishers database as > an example. What I'd like to do is search each book's title and remove > certain common words from it. The remaining words I'd like to use as > keywords. -- M S Herfried K. Wagner M V P <URL:http://dotnet.mvps.org/> V B <URL:http://classicvb.org/petition/>
How to Print PRN file
InStr Time Critical Process in .NET the menu and the shortcuts Converting MS Access 2000 application to a VB / VB.NET application How to Prevent Flicker when Updating ListView Form that slides up into view (MSN Style) AddHandler RemoveHandler Question date problem in datagrid Error on break |
|||||||||||||||||||||||