I'm trying to add an "s" to the end of a string. I know there are some easier ways to append something to a string but for my need I have to work with a regex.
I currently have this:
string str = "test";
string res = Regex.Replace(str, "(.*)$", "$1s");
This gives me:
testss
Why is there an extra "s" at the end?