Relax\Greppy\FluentPattern::range PHP Method

range() public method

public range ( integer | string $from, integer | string $to ) : Relax\Greppy\Pattern
$from integer | string
$to integer | string
return Relax\Greppy\Pattern
    public function range($from, $to)
    {
        $this->pattern .= sprintf("[%s-%s]", $from, $to);
        return $this;
    }