How to replace strings in file without regex?

Solution 1:

You may have better luck using perl - which supports literal string matching via the \Q (quoted sentence) modifier e.g.

perl -pe 's/\Qstring/replacement/g'

See for example this article Perl Regular Expression Syntax at boost.org