regex filters functioning for custom definitions