public function matchesRegex(
        $pattern,
        array &$matches = null,
        $flags = null,
        $offset = null
    ) {
        if (null === $flags) {
            $flags = 0;
        }
        if (null === $offset) {
            $offset = 0;
        }

        return 1 === preg_match(
            $pattern,
            $this->string(),
            $matches,
            $flags,
            $offset
        );
    }
public function matchesRegex(
        $pattern,
        array &$matches = null,
        $flags = null,
        $offset = null
    ) {
        if (null === $flags) {
            $flags = 0;
        }
        if (null === $offset) {
            $offset = 0;
        }

        return 1 === preg_match(
            $pattern,
            $this->string(),
            $matches,
            $flags,
            $offset
        );
    }
public function matchesRegex ( $ pattern , array & $ matches = null , $ flags = null , $ offset = null ) { if ( null === $ flags ) { $ flags = 0 ; } if ( null === $ offset ) { $ offset = 0 ; } return 1 === preg_match ( $ pattern , $ this -> string ( ) , $ matches , $ flags , $ offset ) ; }
Determine if this path 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 matches the pattern.
Determine if this path matches a regular expression .