Abstraction for switiching between regex and bif:contains filtering initially working