original_string: public function nameMatchesRegex(
          $pattern,
          array &$matches = null,
          $flags = null,
          $offset = null
      ) {
          if (null === $flags) {
              $flags = 0;
          }
          if (null === $offset) {
              $offset = 0;
          }
  
          return 1 === preg_match(
              $pattern,
              $this->name(),
              $matches,
              $flags,
              $offset
          );
      }
code: public function nameMatchesRegex(
          $pattern,
          array &$matches = null,
          $flags = null,
          $offset = null
      ) {
          if (null === $flags) {
              $flags = 0;
          }
          if (null === $offset) {
              $offset = 0;
          }
  
          return 1 === preg_match(
              $pattern,
              $this->name(),
              $matches,
              $flags,
              $offset
          );
      }
code_tokens: public function nameMatchesRegex ( $ pattern , array & $ matches = null , $ flags = null , $ offset = null ) { if ( null === $ flags ) { $ flags = 0 ; } if ( null === $ offset ) { $ offset = 0 ; } return 1 === preg_match ( $ pattern , $ this -> name ( ) , $ matches , $ flags , $ offset ) ; }
docstring: Determine if this path's name matches a regular expression.
  
  @param string       $pattern  The pattern to check against.
  @param array|null   &$matches Populated with the pattern matches.
  @param integer|null $flags    Additional flags.
  @param integer|null $offset   Start searching from this byte offset.
  
  @return boolean True if this path's name matches the pattern.
docstring_tokens: Determine if this path s name matches a regular expression .