This article demonstrates how to use regular expressions and RegEx class (System.Text.RegularExpressions namespace) to build the find and replace functionality found in most of the text editors and word processors.

Find and Replace with Regular Expressions - The Code Project - C# Programming