* * For the full copyright and license information, please view the "LICENSE.md" * file that was distributed with this source code. */ declare(strict_types=1); namespace Respect\Validation\Rules; /** * @author Alexander Wühr * @author Henrique Moody * @author Jean Pimentel */ class Roman extends AbstractEnvelope { public function __construct() { parent::__construct(new Regex('/^M{0,4}(CM|CD|D?C{0,3})(XC|XL|L?X{0,3})(IX|IV|V?I{0,3})$/')); } }