pyregexp-query-replace fixed for emacs versions after 2012-09-06