Glad that helped :-)
Yes, although still tricky - since you don't want to change all transactions that are “Restaurants and Bars” back to Groceries… you'll have to have an idea of which Payees were for groceries.
Batch change tip thanks to @jacobs who helped me out with this issue recently…
As @jacobs and others have noted, a severe shortcoming of this batch change feature is that it will not change splits in split transactions. So, if you had a grocery store purchase that was split between Groceries and Pharmacy/Drugs, Household or whatever… it will not find or change those.