original_string: public function regexp($expression, $description = null): ValidatorChain
      {
          $rule = Validator::rule('regexp', [$expression]);
          if (null !== $description) {
              $rule->setDescription($description);
          }
          $this->addRule($rule);
          return $this;
      }
code: public function regexp($expression, $description = null): ValidatorChain
      {
          $rule = Validator::rule('regexp', [$expression]);
          if (null !== $description) {
              $rule->setDescription($description);
          }
          $this->addRule($rule);
          return $this;
      }
code_tokens: public function regexp ( $ expression , $ description = null ) : ValidatorChain { $ rule = Validator :: rule ( 'regexp' , [ $ expression ] ) ; if ( null !== $ description ) { $ rule -> setDescription ( $ description ) ; } $ this -> addRule ( $ rule ) ; return $ this ; }
docstring: Add Regexp Rule to ValidatorChain
  
  @param string      $expression
  @param string|null $description
  
  @return ValidatorChain
  @throws \Bluz\Validator\Exception\ComponentException
docstring_tokens: Add Regexp Rule to ValidatorChain