Replace pmatch with match