protected function validatePattern($pattern)
    {
        if (!preg_match('/(?<modifier>[imsxeADSUXJu]+)$/', $pattern, $matches)) {
            return true;
        }

        if (false !== strstr($matches['modifier'], 'e')) {
            throw new Exception\InvalidArgumentException(sprintf(
                'Pattern for a PregReplace filter may not contain the "e" pattern modifier; received "%s"',
                $pattern
            ));
        }
    }
protected function validatePattern($pattern)
    {
        if (!preg_match('/(?<modifier>[imsxeADSUXJu]+)$/', $pattern, $matches)) {
            return true;
        }

        if (false !== strstr($matches['modifier'], 'e')) {
            throw new Exception\InvalidArgumentException(sprintf(
                'Pattern for a PregReplace filter may not contain the "e" pattern modifier; received "%s"',
                $pattern
            ));
        }
    }
protected function validatePattern ( $ pattern ) { if ( ! preg_match ( '/(?<modifier>[imsxeADSUXJu]+)$/' , $ pattern , $ matches ) ) { return true ; } if ( false !== strstr ( $ matches [ 'modifier' ] , 'e' ) ) { throw new Exception \ InvalidArgumentException ( sprintf ( 'Pattern for a PregReplace filter may not contain the "e" pattern modifier; received "%s"' , $ pattern ) ) ; } }
Validate a pattern and ensure it does not contain the "e" modifier

@param  string $pattern
@return bool
@throws Exception\InvalidArgumentException
Validate a pattern and ensure it does not contain the e modifier