I'm using this example to replace a string in a file. Works fine replacing all matching strings (also recognizes sensitive case). Now i'm need that it can replace a string only if not contains in another string, for example:
- UserName - Change only here
GetUserName
- Not change here
How make (utilizing the same code)?