View Single Post
Old 05-04-2023, 08:22 AM   #608
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,149
Karma: 77213683
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
What is the best way to check a column for multiple patterns and return for any matches? Here is what I have:

Code:
program:

omnibus =
	if 
		'Box Set' in $title
		|| 'Complete Series' in $title
		|| '(Books|Volumes) (\d+-\d+)' in $title
	then
		'omnibus'
	else
		''
	fi;

list_union(omnibus, $#admintags, ',')
This is for use in an Action Chain. It adds 'omnibus' to #admintags if the title indicates it's one.

Last edited by ownedbycats; 05-04-2023 at 08:25 AM.
ownedbycats is offline   Reply With Quote