updated for latest BE

regex metacharacters ({}[]()^$.|*+? and \) now have to be escaped using
'\' if they should be used as literals.