Case-insensitive object search

Hello, I’d like to find an entry in my structure object and I need the search to be case-insensitive. Is there any built-in Kirby function for such a task?

$my_structure_object->findBy('my_field_name', 'Monkey');

That’ll only find the entry that matches ‘Monkey’. I’d like to find the entry if it’s ‘monkey’, ‘MONKEY’, .etc.

Any insight?

Not with findBy(), but you can instead use filterBy(), either with a regular expression as filter method or by passing a callback.