original_string: 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
              ));
          }
      }
code: 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
              ));
          }
      }
code_tokens: 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 ) ) ; } }
docstring: Validate a pattern and ensure it does not contain the "e" modifier
  
  @param  string $pattern
  @return bool
  @throws Exception\InvalidArgumentException
docstring_tokens: Validate a pattern and ensure it does not contain the e modifier