How to replace a set of characters where I only know the first and the last one, in between is a variable that is not constant.
All I know is that this string will always start with &
and it will end with ;
string str = "Hello &145126451; mate!";
How to get rid of &145126451;
?
So the desired result is:
string result = "Hello mate!"