library/rampage/core/xml/mergerule/UniqueAttributeRule.php
protected function isValidAttribute($name)
    {
        $pattern = '~^' . self::ATTRIBUTE_REGEX . '$~i';
        $result = @preg_match($pattern, $name);
        return (bool)$result;
    }
protected function isValidAttribute($name)
    {
        $pattern = '~^' . self::ATTRIBUTE_REGEX . '$~i';
        $result = @preg_match($pattern, $name);
        return (bool)$result;
    }
protected function isValidAttribute ( $ name ) { $ pattern = '~^' . self :: ATTRIBUTE_REGEX . '$~i' ; $ result = @ preg_match ( $ pattern , $ name ) ; return ( bool ) $ result ; }
validate attribute name

@param string $name
@return bool
validate attribute name