1
9
7,267
16
Top 1% !
Popular
Famous
Pearl of Wisdom
Tagged
Easy-to-find
Specified
Refined
OpenSource
Popularity: 911st place
Published on:
.NETFramework | 4.0 | |
Architecture | x86_64 | |
Extension | .cs | |
InputName0 | stringToSearch | |
InputName1 | find | |
InputName2 | replace | |
InputType0 | string | |
InputType1 | string | |
InputType2 | string | |
Language | CSharp | |
License | MIT_X11 | |
MethodName | ReplaceExactWord | |
OS | Windows | |
OutputType | string |
C#: Replace an exact word in a sentence
Same as String.Replace but with case-insensitive matches and search for the exact word.
E.g. searching in "Java and Javascript with Java." the word 'Java', and replacing it with 'Python' results in "Python and Javascript with Python."