Fix escape regexp.

Bug report and fix by bobef <borislav.asdf@gmail.com>.