public function setUrlCrawlPatterns(array $pattern = null)
    {
        $this->otherOptions['urlCrawlPattern'] = ($pattern === null) ? null
            : implode("||", array_map(function ($item) {
                return urlencode($item);
            }, $pattern));

        return $this;
    }
public function setUrlCrawlPatterns(array $pattern = null)
    {
        $this->otherOptions['urlCrawlPattern'] = ($pattern === null) ? null
            : implode("||", array_map(function ($item) {
                return urlencode($item);
            }, $pattern));

        return $this;
    }
public function setUrlCrawlPatterns ( array $ pattern = null ) { $ this -> otherOptions [ 'urlCrawlPattern' ] = ( $ pattern === null ) ? null : implode ( "||" , array_map ( function ( $ item ) { return urlencode ( $ item ) ; } , $ pattern ) ) ; return $ this ; }
Array of strings to limit pages crawled to those whose URLs
contain any of the content strings.

You can use the exclamation point to specify a negative string, e.g.
!product to exclude URLs containing the string "product," and the ^ and
$ characters to limit matches to the beginning or end of the URL.

The use of a urlCrawlPattern will allow Crawlbot to spider outside of
the seed domain; it will follow all matching URLs regardless of domain.

@param array $pattern
@return $this
Array of strings to limit pages crawled to those whose URLs contain any of the content strings .