Archive for December, 2007

How to remove all special characters from a string

Thursday, December 27th, 2007

protected string StripSpecChars(string txtIn)
{
string txtOut = Regex.Replace(txtIn, @”[^\w\.@-]”, “”).Trim();
return txtOut;
}

Programming | No comments

How to remove commonly occuring English words from a string

Thursday, December 20th, 2007

I’m using this function to filter common words out of a search query.

protected string removeCommonWords(string sourceStr)
{
string[] seperator = { ” “ };
string[] ignoreWords = { “a”, “all”, “am”, “an”, “and”, “any”, “are”, “as”,
“at”, “be”, “but”, “can”, “did”, “do”, “does”, […]

Programming | 1 comment

You are currently browsing the Calisto Mind weblog archives for December, 2007.


Recently on Flickr

  • IMG_0514
  • IMG_0506
  • IMG_0505
  • IMG_0503
  • IMG_0497
  • IMG_0495
  • IMG_0494
  • IMG_0493

Switch Theme

Meta