Пример #1
0
 public function nonspaces()
 {
     $this->many(Character::space(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');
 }