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
        );
    }
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
        );
    }
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 ) ; }
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.
Determine if this path s name matches a regular expression .