original_string: protected function removeRule($rule)
      {
          if (!is_string($this->rules)) {
              return;
          }
  
          $pattern = "/{$rule}[^\|]?(\||$)/";
          $this->rules = preg_replace($pattern, '', $this->rules, -1);
      }
code: protected function removeRule($rule)
      {
          if (!is_string($this->rules)) {
              return;
          }
  
          $pattern = "/{$rule}[^\|]?(\||$)/";
          $this->rules = preg_replace($pattern, '', $this->rules, -1);
      }
code_tokens: protected function removeRule ( $ rule ) { if ( ! is_string ( $ this -> rules ) ) { return ; } $ pattern = "/{$rule}[^\|]?(\||$)/" ; $ this -> rules = preg_replace ( $ pattern , '' , $ this -> rules , - 1 ) ; }
docstring: Remove a specific rule by keyword.
  
  @param string $rule
  
  @return void
docstring_tokens: Remove a specific rule by keyword .