Added support for RegexFilter
Changed RegexFilter -> FunctionFilter to support arbitrary funcitons