public function removePatterns($removeFunction)
    {
        $this->clearPatternsCache();

        $this->options['patterns'] = array_filter($this->options['patterns'], $removeFunction);

        return $this;
    }