Searching for strings

  • Thread starter Thread starter Roshawn Dawson
  • Start date Start date
R

Roshawn Dawson

Hi,

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], "")
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 said:
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.

'Strings.Replace', 'String.Replace', 'Regex.Replace'.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top