public static function getArgument($key, $default = "default", $regex = ".*") {
		if(self::$arguments === array())
			self::$arguments = array_merge($_GET, $_POST, $_FILES);

		if(isset(self::$arguments[$key])) {
			if($regex == ".*" || preg_match("/^" . $regex . "$/i", self::$arguments[$key]))
				return self::$arguments[$key];

			throw new InvalidRequestArgumentException;
		}

		return $default;
	}