code: public static function regex($pattern, $message = null)
      {
          if ($message === null) {
              $message = 'Input must match the pattern ' . $pattern;
          }
  
          return new ExpectsRegexMatch($pattern, $message);
      }
docs: @param string      $pattern
  @param string|null $message
  
  @return ExpectsRegexMatch