public function range($from, $to) { $this->pattern .= sprintf("[%s-%s]", $from, $to); return $this; }