Use visual-regexp for query-replace-regexp and replace-regexp