'/(^\d+(\.{0,1}\d{0,})(;\d+(\.{0,1}\d{0,}))+$)|^$/')); $attrCode = $this->getAttribute()->getAttributeCode(); $value = $object->getData($attrCode); $price = $object->getData('price'); if(!($price > 0)) { if(!$validator->isValid($value)) { Mage::throwException('Not correct value. Example: 100;200.33;300.56'); } } } }