To replace all occurrence of the _pattern_ in str1 by the _string_ in
str2 (which may contain backrefs but no wildcards), use
:exe '1,$s/' . str1 . '/' . str2 . '/g'
see
:help :execute
:help :substitute
Best regards,
Tony.
--
"Now the Lord God planted a garden East of Whittier in a place called
Yorba Linda, and out of the ground he made to grow orange trees that
were good for food and the fruits thereof he labeled SUNKIST ..."
-- "The Begatting of a President"