Quote:
Originally Posted by ownedbycats
Unfortunately, that removed subitems from all my books.
I just want to remove any subitems from a hierarchical item beginning with Fanfiction or Documentation and Manuals. Alternately, hiding it entirely if that's easier.
At the very least the third list_difference in the OP works, though I just have to add all the items manually.
|
I still don't understand what you want. Guessing, perhaps this:
Code:
program:
g = field('#genre');
list_re_group(g, ',', '.', '^(Fanfiction|Documentation and Manuals)($|\..*$)', '{$}', '')
It removes hierarchical items from the two items but doesn't touch any other item.