sed with variables in shell script

C++
Use double quotes for the sed expression.

sed "s/$replace_string/$replace_with/"`
Source

Also in C++: