Is it possible to set up exclusion/inclusion filters to have wildcard character in the beginning?

For example, let's say we have package org.foo, org.bar, and com.foo and i want to filter for any package names that has foo in it. In this case I want something like *.foo.*.* but that doesn't seem to work. is there any way to do what I want? or do i have to set up filter for every package that has foo in it?