'Replace is not doing the expected replacement [duplicate]
I have a problem in c# with replace in a string with space at the end.
"ERROR.1️.1.1094".Replace("ERROR.1.", "")
Expected value is 1.1094 but it's not working.
Can anybody help me?
Solution 1:[1]
Please try the following
"ERROR 1? 1.1094".Replace("ERROR 1 ", string.Empty)
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | GSM |
