Languages
[Edit]
EN

C# / .NET - string replace

1 points
Created by:
Frida-Timms
667

In C# / .NET it is possible to replace part of string in few ways.

1. String.Replace method example

Edit

Output:

2. Regex.Replace instance method example

Edit

Output:

3. Regex.Replace static method example

Edit

Output:

4. References

Edit
  1. String.Replace Method - Microsoft Docs
  2. Regex.Replace Instance Method - Microsoft Docs
  3. Regex.Replace Static Method - Microsoft Docs
1
Donate to Dirask
Our content is created by volunteers - like Wikipedia. If you think, the things we do are good, donate us. Thanks!
Join to our subscribers to be up to date with content, news and offers.
Native Advertising
🚀
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂

Join