original_string: public static function isMatch($value, string $pattern): bool
      {
          if (!static::isStringCastable($value)) {
              return false;
          }
  
          return !!preg_match($pattern, (string) $value);
      }
code: public static function isMatch($value, string $pattern): bool
      {
          if (!static::isStringCastable($value)) {
              return false;
          }
  
          return !!preg_match($pattern, (string) $value);
      }
code_tokens: public static function isMatch ( $ value , string $ pattern ) : bool { if ( ! static :: isStringCastable ( $ value ) ) { return false ; } return ! ! preg_match ( $ pattern , ( string ) $ value ) ; }
docstring: Checks if value matches a regular expression
  
  @param mixed  $value   The value
  @param string $pattern The regex pattern
  
  @return bool
docstring_tokens: Checks if value matches a regular expression