Removing words from a paragraph RRS feed

  • Question

  • I'm looking for a regular expression to remove individual words from a paragraph of text. I'm sure this would be easy if I could understand regex but I don't. Could someone help me out? Thanks in advance
    Thursday, December 30, 2010 7:10 AM


  • replace: \b((word1|word2|word3|...)\b with: string.Empty Or use \b\w+\b as replace expression and replace the values using a MatchEvaluator.
    • Marked as answer by eryang Monday, January 3, 2011 7:33 AM
    Thursday, December 30, 2010 11:23 AM