public static function getIdFromRelativeHref($relative_href) {
		$regex = ',.+/([0-9A-Z]+)$,';
		$matches = array();
		preg_match($regex, $relative_href, $matches);

		return count($matches) > 0 ? $matches[1] : 0;
	}
public static function getIdFromRelativeHref($relative_href) {
		$regex = ',.+/([0-9A-Z]+)$,';
		$matches = array();
		preg_match($regex, $relative_href, $matches);

		return count($matches) > 0 ? $matches[1] : 0;
	}
public static function getIdFromRelativeHref ( $ relative_href ) { $ regex = ',.+/([0-9A-Z]+)$,' ; $ matches = array ( ) ; preg_match ( $ regex , $ relative_href , $ matches ) ; return count ( $ matches ) > 0 ? $ matches [ 1 ] : 0 ; }
Returns the object id when given the objects relative href.

@static
@example RightScaleClient::getIdFromRelativeHref('/api/clouds/12345');
@param string $href The relative API href of the object.  I.E. /api/clouds/12345

@return integer The ID of the object
Returns the object id when given the objects relative href .