src/PeekAndPoke/Component/Formal/Validation/Accepts.php
public static function regex($pattern, $message = null)
    {
        if ($message === null) {
            $message = 'Input must match the pattern ' . $pattern;
        }

        return new ExpectsRegexMatch($pattern, $message);
    }
public static function regex($pattern, $message = null)
    {
        if ($message === null) {
            $message = 'Input must match the pattern ' . $pattern;
        }

        return new ExpectsRegexMatch($pattern, $message);
    }
@param string      $pattern
@param string|null $message

@return ExpectsRegexMatch