示例#1
0
 public function nondigits()
 {
     $this->many(Character::digit(true));
     return $this;
 }
示例#2
0
 /**
  * zone            =   (FWS ( "+" / "-" ) 4DIGIT) / obs-zone
  */
 private function zone()
 {
     return (new Hexpress())->find(function ($hex) {
         $hex->either([(new Hexpress())->has($this->FWS())->either(['+', '-'])->limit(Character::digit(), 4, 4), $this->obsZone()]);
     }, 'zone');
 }