sed variable substitution problem

Hi,
I am facing a strange problem. I have a script that used the following to search and replace text:
sed 's/'"${find_var_parm}"'/'"${find_var_filter}"'/g' $ParmFile > $TempFile

The values of $find_var_parm and $find_var_filter are set based on search criteria. The above seems to be working for all scenarios except the following
when $find_var_parm is $$FILTER_EDL_MBR=
and $find_var_filter is $$FILTER_EDL_MBR= AND MBR.MBR_KEY IN( 'LQTMXCEQCYIpI!#@@#-A?*%--?!*?@@@#@?--','LQTMXCEQCYIpI!$@*@-I-?%?-?!!*%%?$&=@@--' )

The replaced text instead of being $$FILTER_EDL_MBR= AND MBR.MBR_KEY IN( 'LQTMXCEQCYIpI!#@@#-A?*%--?!*?@@@#@?--','LQTMXCEQCYIpI!$@*@-I-?%?-?!!*%%?$&=@@--' )

is actually

( 'LQTMXCEQCYIpI!#@@#-A?*%--?!*?@@@#@?--','LQTMXCEQCYIpI!$@*@-I-?%?-?!!*%%?$$FILTER_EDL_MBR=@@--' )

Can anyone please help?

Please post the exact code that is giving you problems. Show the variable assignments and the sed command.

and use

```text
..
```

tags.