View Single Post
Old 06-03-2023, 06:32 PM   #628
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 11,438
Karma: 81367635
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
I have a list of tags such as Fiction.Cultures & Regions.Canada and Nonfiction.Cultures & Regions.Asia.China.

I'd like to remove any tag including "Cultures & Regions" from the list before splitting it.

I tried a regex list_difference but it didn't seem to work:

Code:
program:
	list_difference($tags, '(.*)Cultures & Regions(.*)', ',');)
(Additionally, I also want to do the same with something like a list_intersection to extract the culture & region items.)

Last edited by ownedbycats; 06-03-2023 at 06:34 PM.
ownedbycats is offline   Reply With Quote