original_string: public function find($regexpPattern = '.*', $sort = false)
      {
          list(, $files) = $this->read($sort);
  
          return array_values(preg_grep('/^' . $regexpPattern . '$/i', $files));
      }
code: public function find($regexpPattern = '.*', $sort = false)
      {
          list(, $files) = $this->read($sort);
  
          return array_values(preg_grep('/^' . $regexpPattern . '$/i', $files));
      }
code_tokens: public function find ( $ regexpPattern = '.*' , $ sort = false ) { list ( , $ files ) = $ this -> read ( $ sort ) ; return array_values ( preg_grep ( '/^' . $ regexpPattern . '$/i' , $ files ) ) ; }
docstring: Returns an array of all matching files in current directory.
  
  @param string $regexpPattern Preg_match pattern (Defaults to: .*)
  @param bool $sort Whether results should be sorted.
  @return array Files that match given pattern
docstring_tokens: Returns an array of all matching files in current directory .