public function setRegexpLimit($limit)
	{
		$limit = (int) $limit;

		if ($limit < 1)
		{
			throw new InvalidArgumentException('regexpLimit must be a number greater than 0');
		}

		$this->regexpLimit = $limit;
	}
public function setRegexpLimit($limit)
	{
		$limit = (int) $limit;

		if ($limit < 1)
		{
			throw new InvalidArgumentException('regexpLimit must be a number greater than 0');
		}

		$this->regexpLimit = $limit;
	}
public function setRegexpLimit ( $ limit ) { $ limit = ( int ) $ limit ; if ( $ limit < 1 ) { throw new InvalidArgumentException ( 'regexpLimit must be a number greater than 0' ) ; } $ this -> regexpLimit = $ limit ; }
Set the maximum number of regexp matches

@param  integer $limit
@return void
Set the maximum number of regexp matches