in reply to help substitute between quotes

See perlrun , perlrequick, perlquote and try perl -pi -e " s{blah\x22\x22...}{blah!'}g

\x22 means "