in reply to regex question

You can try to defuse $parse1 by using alternate separators, e.g.

s{}{} or m{}

or enclosing the string in \Q\E

s/ \Q$string\E /  ... / or m/ \Q$string\E /