Regex escape

Check that text to replace is regex compatible.  IE escape when necessary or pass pure regex.