View Single Post
Old 03-25-2023, 05:17 PM   #535
Lys
Groupie
Lys ought to be getting tired of karma fortunes by now.Lys ought to be getting tired of karma fortunes by now.Lys ought to be getting tired of karma fortunes by now.Lys ought to be getting tired of karma fortunes by now.Lys ought to be getting tired of karma fortunes by now.Lys ought to be getting tired of karma fortunes by now.Lys ought to be getting tired of karma fortunes by now.Lys ought to be getting tired of karma fortunes by now.Lys ought to be getting tired of karma fortunes by now.Lys ought to be getting tired of karma fortunes by now.Lys ought to be getting tired of karma fortunes by now.
 
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 View Post
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
Lys is offline   Reply With Quote