Change M-% like C-s or C-r

Replace regexp if prefix argument is enabled