Transformer/PregFilterTransformer.php
public function transform($value, array $options = [])
    {
        $resolver = new OptionsResolver();
        $this->configureOptions($resolver);
        $options = $resolver->resolve($options);

        $pattern = $options['pattern'];
        $replacement = $options['replacement'];

        return preg_filter($pattern, $replacement, $value);
    }
public function transform($value, array $options = [])
    {
        $resolver = new OptionsResolver();
        $this->configureOptions($resolver);
        $options = $resolver->resolve($options);

        $pattern = $options['pattern'];
        $replacement = $options['replacement'];

        return preg_filter($pattern, $replacement, $value);
    }
Must return the transformed $value

@param mixed $value
@param array $options

@throws \Symfony\Component\OptionsResolver\Exception\ExceptionInterface

@return mixed $value