Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion docs/csharp/how-to/modify-string-contents.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ ms.author: "wiwagn"

This article demonstrates several techniques to produce a `string` by modifying an existing `string`. All the techniques demonstrated return the result of the modifications as a new `string` object. To clearly demonstrate this, the examples all store the result in a new variable. You can then examine both the original `string` and the `string` resulting from the modification when you run each example.

[!INCLUDE[interactive-note](~/includes/csharp-interactive-note.md)]

There are several techniques demonstrated in this article. You can replace existing text. You can search for patterns and replace matching text with other text. You can treat a string as a sequence of characters. You can also use convenience methods that remove white space. You should choose the techniques that most closely match your scenario.

## Replace text
Expand Down Expand Up @@ -72,4 +74,4 @@ You can try these samples by looking at the code in our [GitHub repository](http
## See also

[.NET Framework Regular Expressions](../../standard/base-types/regular-expressions.md)
[Regular Expression Language - Quick Reference](../../standard/base-types/regular-expression-language-quick-reference.md)
[Regular Expression Language - Quick Reference](../../standard/base-types/regular-expression-language-quick-reference.md)