I like the approach of the (experimental) Lapis editor, which allows you to select several examples and it infers a selection rule written in an English-like language.
And it works on plain text, not just tables.
You can tweak the rule, and then simultaneously edit all the records selected with it.