BLOG.CSHARPHELPER.COM: Use regular expressions to replace text in a string in C#
Use regular expressions to replace text in a string in C#
The program creates a Regex object, passing its constructor a regular expression pattern that will identify text to replace. It calls the object's Replace method, passing it the replacement pattern.
Comments