in reply to replace text

You should quotemeta your $find string, to be sure that the search pattern is taken literally. For example searching for "a cat (or a dog)" will match "a cat or a dog" without the parenthesis.