Your IP : 216.73.216.240
<?php
/**
*----------------------------------------------------------------------------
* iC Library Library by JoomliC, for Joomla!
*----------------------------------------------------------------------------
* @version 4.0.0 2025-09-06
*
* @package iC Library
* @subpackage Rule.IC
* @link https://www.joomlic.com
*
* @author Cyril Reze
* @copyright (c) 2013-2026 Cyril Reze / JoomliC. All rights reserved.
* @license GNU General Public License version 3 or later; see LICENSE.txt
*
* @since 1.4.2
*----------------------------------------------------------------------------
*/
namespace iClib\Rule\IC;
\defined('_JEXEC') or die;
use Joomla\CMS\Form\FormRule;
/**
* Form Rule class.
*
* Positive integer validation.
*/
class PositiveIntegerRule extends FormRule
{
/**
* The regular expression to use in testing a form field value.
*
* @var string
*/
protected $regex = '^(\s*|[1-9][0-9]*$)$';
}