How to grep a variable?

Hi,
I'd like to grep a variable that I saved in the program.
Like
grep '0\$variable1' file1

Does someone know what's wrong with this command?

Thanks a lot!

try:

grep "0$variable1" file1

grep "$variable1" file1

Above command should work !