03-25-2023, 05:17 PM
|
#535
|
Groupie
Posts: 166
Karma: 727278
Join Date: Dec 2022
Location: Not in an English speaking country
Device: (Too many) Kobo(s)
|
Quote:
Originally Posted by chaley
I suspect that list_re() can do the job but it requires two steps. Example:
Code:
program:
a = list_re($#genre, ',', '^(.* Literature|Country: .*)$', '');
list_difference($#genre, a, ',')
The list_re() generates a list of items to remove, using a pattern I made up from your example. The list_difference() removes the matched items from #genre.
|
It worked like a charm
|
|
|